/** * Creates a new instance of ProxiedAuthzDecoder wrapping a newly created * ProxiedAuthz Control object. * * @param codec The LDAP service instance */ public ProxiedAuthzDecorator( LdapApiService codec ) { super( codec, new ProxiedAuthzImpl() ); }
/** * Default constructor. */ public ProxiedAuthzImpl() { super( OID ); // The criticality must be true setCritical( true ); }
/** * Return a String representing this PagedSearchControl. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( " Proxied Authz Control\n" ); sb.append( " oid : " ).append( getOid() ).append( '\n' ); sb.append( " critical : " ).append( isCritical() ).append( '\n' ); sb.append( " authzid : '" ).append( authzId ).append( "'\n" ); return sb.toString(); } }
/** * Return a String representing this PagedSearchControl. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( " Proxied Authz Control\n" ); sb.append( " oid : " ).append( getOid() ).append( '\n' ); sb.append( " critical : " ).append( isCritical() ).append( '\n' ); sb.append( " authzid : '" ).append( authzId ).append( "'\n" ); return sb.toString(); } }
/** * Return a String representing this PagedSearchControl. */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append( " Proxied Authz Control\n" ); sb.append( " oid : " ).append( getOid() ).append( '\n' ); sb.append( " critical : " ).append( isCritical() ).append( '\n' ); sb.append( " authzid : '" ).append( authzId ).append( "'\n" ); return sb.toString(); } }
/** * Creates a new instance of ProxiedAuthzDecoder wrapping a newly created * ProxiedAuthz Control object. * * @param codec The LDAP service instance */ public ProxiedAuthzDecorator( LdapApiService codec ) { super( codec, new ProxiedAuthzImpl() ); }
/** * Default constructor. */ public ProxiedAuthzImpl() { super( OID ); // The criticality must be true setCritical( true ); }
/** * Creates a new instance of ProxiedAuthzDecoder wrapping a newly created * ProxiedAuthz Control object. * * @param codec The LDAP service instance */ public ProxiedAuthzDecorator( LdapApiService codec ) { super( codec, new ProxiedAuthzImpl() ); }
/** * Default constructor. */ public ProxiedAuthzImpl() { super( OID ); // The criticality must be true setCritical( true ); }
ProxiedAuthz proxiedAuthzControl = new ProxiedAuthzImpl(); proxiedAuthzControl.setAuthzId( "dn: " + userDn ); compareRequest.addControl( proxiedAuthzControl );