use of org.apache.directory.api.ldap.extras.extended.startTls.StartTlsResponseImpl in project directory-ldap-api by apache.
the class ApiLdapExtrasCodecApiOsgiTest method useBundleClasses.
@Override
protected void useBundleClasses() throws Exception {
SynchronizationModeEnum.REFRESH_AND_PERSIST.getValue();
new AdDirSyncImpl().getOid();
new AdShowDeletedImpl().getOid();
new AdPolicyHintsImpl().getOid();
new ChangeNotificationsImpl().getOid();
new PermissiveModifyImpl().getOid();
new PasswordPolicyImpl().getOid();
new PasswordPolicyResponseImpl().getGraceAuthNRemaining();
new SyncDoneValueImpl().getOid();
new SyncRequestValueImpl().getOid();
new SyncStateValueImpl(true).getCookie();
new VirtualListViewRequestImpl().getOid();
new VirtualListViewResponseImpl().getOid();
new PasswordModifyRequestImpl().getUserIdentity();
new PasswordModifyResponseImpl(5).setResponseName("foo");
new WhoAmIRequestImpl();
new WhoAmIResponseImpl().setDn(new Dn("uid=admin,ou=system"));
new StartTlsRequestImpl();
new StartTlsResponseImpl();
new StartTransactionRequestImpl();
new StartTransactionResponseImpl();
}
use of org.apache.directory.api.ldap.extras.extended.startTls.StartTlsResponseImpl in project directory-ldap-api by apache.
the class StartTlsFactory method newResponse.
/**
* {@inheritDoc}
*/
@Override
public StartTlsResponse newResponse(byte[] encodedValue) throws DecoderException {
StartTlsResponseDecorator response = new StartTlsResponseDecorator(codec, new StartTlsResponseImpl());
response.setResponseValue(encodedValue);
return response;
}
use of org.apache.directory.api.ldap.extras.extended.startTls.StartTlsResponseImpl in project directory-ldap-api by apache.
the class StartTlsFactory method decorate.
/**
* {@inheritDoc}
*/
@Override
public StartTlsResponseDecorator decorate(ExtendedResponse decoratedResponse) {
if (decoratedResponse instanceof StartTlsResponseDecorator) {
return (StartTlsResponseDecorator) decoratedResponse;
}
if (decoratedResponse instanceof StartTlsResponse) {
return new StartTlsResponseDecorator(codec, (StartTlsResponse) decoratedResponse);
}
// It's an opaque extended operation
@SuppressWarnings("unchecked") ExtendedResponseDecorator<ExtendedResponse> response = (ExtendedResponseDecorator<ExtendedResponse>) decoratedResponse;
// Decode the response, as it's an opaque operation
StartTlsResponse startTlsResponse = new StartTlsResponseImpl(response.getMessageId());
startTlsResponse.getLdapResult().setResultCode(response.getLdapResult().getResultCode());
startTlsResponse.getLdapResult().setDiagnosticMessage(response.getLdapResult().getDiagnosticMessage());
return new StartTlsResponseDecorator(codec, new StartTlsResponseImpl());
}
Aggregations