@Test(groups = "control", dataProvider = "response") public void decode(final DERBuffer berValue, final SortResponseControl expected) throws Exception { final SortResponseControl actual = new SortResponseControl(expected.getCriticality()); actual.decode(berValue); Assert.assertEquals(actual, expected); }
@Override public void decode(final DERBuffer encoded) { final DERParser parser = new DERParser(); parser.registerHandler(SortResultHandler.PATH, new SortResultHandler(this)); parser.registerHandler(AttributeTypeHandler.PATH, new AttributeTypeHandler(this)); parser.parse(encoded); }
SortResponseControl extends AbstractControl implements ResponseControl { @Override public void decode(final DERBuffer encoded) { final DERParser parser = new DERParser(); parser.registerHandler(SortResultHandler.PATH, new SortResultHandler(this)); parser.registerHandler(AttributeTypeHandler.PATH, new AttributeTypeHandler(this)); parser.parse(encoded); } }
SortResponseControl extends AbstractControl implements ResponseControl { @Override public void decode(final DERBuffer encoded) { final DERParser parser = new DERParser(); parser.registerHandler(SortResultHandler.PATH, new SortResultHandler(this)); parser.registerHandler(AttributeTypeHandler.PATH, new AttributeTypeHandler(this)); parser.parse(encoded); } SortResponseControl();  SortResponseControl(final boolean critical);  SortResponseControl(final ResultCode code, final boolean critical);  SortResponseControl(final ResultCode code, final String attrName, final boolean critical); }
SortResponseControl extends AbstractControl implements ResponseControl { @Override public void decode(final DERBuffer encoded) { final DERParser parser = new DERParser(); parser.registerHandler(SortResultHandler.PATH, new SortResultHandler(this)); parser.registerHandler(AttributeTypeHandler.PATH, new AttributeTypeHandler(this)); parser.parse(encoded); } SortResponseControl();  SortResponseControl(final boolean critical);  SortResponseControl(final ResultCode code, final boolean critical);  SortResponseControl(final ResultCode code, final String attrName, final boolean critical); ResultCode getSortResult(); void setSortResult(final ResultCode code); String getAttributeName(); void setAttributeName(final String name); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override void decode(final DERBuffer encoded); }
SortResponseControl extends AbstractControl implements ResponseControl { @Override public void decode(final DERBuffer encoded) { final DERParser parser = new DERParser(); parser.registerHandler(SortResultHandler.PATH, new SortResultHandler(this)); parser.registerHandler(AttributeTypeHandler.PATH, new AttributeTypeHandler(this)); parser.parse(encoded); } SortResponseControl();  SortResponseControl(final boolean critical);  SortResponseControl(final ResultCode code, final boolean critical);  SortResponseControl(final ResultCode code, final String attrName, final boolean critical); ResultCode getSortResult(); void setSortResult(final ResultCode code); String getAttributeName(); void setAttributeName(final String name); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override void decode(final DERBuffer encoded); static final String OID; }