Search in sources :

Example 1 with StartTlsRequestDecorator

use of org.apache.directory.api.ldap.extras.extended.ads_impl.startTls.StartTlsRequestDecorator in project directory-ldap-api by apache.

the class ApiLdapExtrasCodecOsgiTest method useBundleClasses.

@Override
protected void useBundleClasses() throws Exception {
    CodecControl<? extends Control> control = ldapApiService.newControl(PasswordPolicy.OID);
    assertNotNull(control);
    assertTrue(control instanceof PasswordPolicyDecorator);
    ExtendedRequest extendedRequest = ldapApiService.newExtendedRequest(StartTlsRequest.EXTENSION_OID, null);
    assertNotNull(extendedRequest);
    assertTrue(extendedRequest instanceof StartTlsRequestDecorator);
}
Also used : PasswordPolicyDecorator(org.apache.directory.api.ldap.extras.controls.ppolicy_impl.PasswordPolicyDecorator) ExtendedRequest(org.apache.directory.api.ldap.model.message.ExtendedRequest) StartTlsRequestDecorator(org.apache.directory.api.ldap.extras.extended.ads_impl.startTls.StartTlsRequestDecorator)

Aggregations

PasswordPolicyDecorator (org.apache.directory.api.ldap.extras.controls.ppolicy_impl.PasswordPolicyDecorator)1 StartTlsRequestDecorator (org.apache.directory.api.ldap.extras.extended.ads_impl.startTls.StartTlsRequestDecorator)1 ExtendedRequest (org.apache.directory.api.ldap.model.message.ExtendedRequest)1