AuthorizationIdentityResponseControl extends AbstractControl implements ResponseControl { @Override public void decode(final DERBuffer encoded) { setAuthorizationId(OctetStringType.decode(encoded)); } AuthorizationIdentityResponseControl();  AuthorizationIdentityResponseControl(final boolean critical);  AuthorizationIdentityResponseControl(final String id);  AuthorizationIdentityResponseControl(final String id, final boolean critical); String getAuthorizationId(); void setAuthorizationId(final String id); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @Override void decode(final DERBuffer encoded); static final String OID; }
@Test(groups = "control", dataProvider = "response") public void decode(final DERBuffer berValue, final AuthorizationIdentityResponseControl expected) throws Exception { final AuthorizationIdentityResponseControl actual = new AuthorizationIdentityResponseControl( expected.getCriticality()); actual.decode(berValue); Assert.assertEquals(actual, expected); }