| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.quicksetup; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean equals(Object o) |
| | | { |
| | | boolean equals = o == this; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int hashCode() |
| | | { |
| | | int hashCode = 44 + initialMemory + maxMemory; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | StringBuilder sb = new StringBuilder(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2007-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final OperationType getOperationType() |
| | | { |
| | | // Note that no debugging will be done in this method because it is a likely |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final List<Control> getResponseControls() |
| | | { |
| | | // An abandon operation can never have a response, so just return an empty |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void addResponseControl(Control control) |
| | | { |
| | | // An abandon operation can never have a response, so just ignore this. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void removeResponseControl(Control control) |
| | | { |
| | | // An abandon operation can never have a response, so just ignore this. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("AbandonOperation(connID="); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeAccessControlHandler(AccessControlHandlerCfg |
| | | configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeAccessControlHandler() |
| | | { |
| | | // No implementation required. |
| | |
| | | * |
| | | * |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public final OperationType getOperationType() |
| | | { |
| | | // Note that no debugging will be done in this method because it is a likely |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public final List<Control> getResponseControls() |
| | | { |
| | | return responseControls; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public final void addResponseControl(Control control) |
| | | { |
| | | responseControls.add(control); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public final void removeResponseControl(Control control) |
| | | { |
| | | responseControls.remove(control); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public final void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("DeleteOperation(connID="); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final OperationType getOperationType() |
| | | { |
| | | // Note that no debugging will be done in this method because it is a likely |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final List<Control> getResponseControls() |
| | | { |
| | | return responseControls; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void addResponseControl(Control control) |
| | | { |
| | | responseControls.add(control); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void removeResponseControl(Control control) |
| | | { |
| | | responseControls.remove(control); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("ExtendedOperation(connID="); |
| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordValidator(PasswordValidatorCfg configuration) |
| | | throws ConfigException, InitializationException |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final OperationType getOperationType() |
| | | { |
| | | // Note that no debugging will be done in this method because it is a likely |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final List<Control> getResponseControls() |
| | | { |
| | | // An unbind operation can never have a response, so just return an empty |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void addResponseControl(Control control) |
| | | { |
| | | // An unbind operation can never have a response, so just ignore this. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void removeResponseControl(Control control) |
| | | { |
| | | // An unbind operation can never have a response, so just ignore this. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("UnbindOperation(connID="); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | AESPasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_AES; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does not support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // This password storage scheme should be considered secure. |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeSASLMechanismHandler(AnonymousSASLMechanismHandlerCfg |
| | | configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeSASLMechanismHandler() |
| | | { |
| | | DirectoryServer.deregisterSASLMechanismHandler(SASL_MECHANISM_ANONYMOUS); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void processSASLBind(BindOperation bindOperation) |
| | | { |
| | | // See if the client provided SASL credentials including trace information. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isPasswordBased(String mechanism) |
| | | { |
| | | // This is not a password-based mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSecure(String mechanism) |
| | | { |
| | | // This is not a secure mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordValidator( |
| | | AttributeValuePasswordValidatorCfg configuration) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizePasswordValidator() |
| | | { |
| | | currentConfig.removeAttributeValueChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PasswordValidatorCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | Base64PasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_BASE64; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does not support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // Base64-encoded values may be easily decoded with no key or special |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeTrustManagerProvider( |
| | | BlindTrustManagerProviderCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | * Performs any finalization that may be necessary for this trust manager |
| | | * provider. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeTrustManagerProvider() |
| | | { |
| | | // No implementation is required. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public TrustManager[] getTrustManagers() |
| | | throws DirectoryException |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | BlowfishPasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_BLOWFISH; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does not support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // This password storage scheme should be considered secure. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeSASLMechanismHandler( |
| | | CramMD5SASLMechanismHandlerCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeSASLMechanismHandler() |
| | | { |
| | | currentConfig.removeCramMD5ChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void processSASLBind(BindOperation bindOperation) |
| | | { |
| | | // The CRAM-MD5 bind process uses two stages. See if the client provided |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isPasswordBased(String mechanism) |
| | | { |
| | | // This is a password-based mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSecure(String mechanism) |
| | | { |
| | | // This may be considered a secure mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | SASLMechanismHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordValidator( |
| | | CharacterSetPasswordValidatorCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizePasswordValidator() |
| | | { |
| | | currentConfig.removeCharacterSetChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PasswordValidatorCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | ClearPasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_CLEAR; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does not support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // Clear-text passwords are not obscured in any way. |
| | |
| | | * |
| | | * |
| | | * Copyright 2009-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | CryptPasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_CRYPT; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does not support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // FIXME: |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | PasswordStorageSchemeCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordValidator( |
| | | DictionaryPasswordValidatorCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizePasswordValidator() |
| | | { |
| | | currentConfig.removeDictionaryChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PasswordValidatorCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeSASLMechanismHandler( |
| | | DigestMD5SASLMechanismHandlerCfg configuration) |
| | | throws ConfigException, InitializationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeSASLMechanismHandler() { |
| | | configuration.removeDigestMD5ChangeListener(this); |
| | | DirectoryServer.deregisterSASLMechanismHandler(SASL_MECHANISM_DIGEST_MD5); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void processSASLBind(BindOperation bindOp) { |
| | | ClientConnection clientConnection = bindOp.getClientConnection(); |
| | | if (clientConnection == null) { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isPasswordBased(String mechanism) |
| | | { |
| | | // This is a password-based mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSecure(String mechanism) |
| | | { |
| | | // This may be considered a secure mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | SASLMechanismHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeGroupImplementation( |
| | | DynamicGroupImplementationCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public DynamicGroup newInstance(ServerContext serverContext, Entry groupEntry) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public SearchFilter getGroupDefinitionFilter() |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isGroupDefinition(Entry entry) |
| | | { |
| | | ifNull(entry); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public DN getGroupDN() |
| | | { |
| | | return groupEntryDN; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsNestedGroups() |
| | | { |
| | | // Dynamic groups don't support nesting. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public List<DN> getNestedGroupDNs() |
| | | { |
| | | // Dynamic groups don't support nesting. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void addNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void removeNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMember(DN userDN, Set<DN> examinedGroups) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMember(Entry userEntry, Set<DN> examinedGroups) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public MemberList getMembers() |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public MemberList getMembers(DN baseDN, SearchScope scope, |
| | | SearchFilter filter) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean mayAlterMemberList() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void addMember(Entry userEntry) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void removeMember(DN userDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("DynamicGroup(dn="); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasMoreMembers() |
| | | { |
| | | while (! searchesCompleted) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Entry nextMemberEntry() |
| | | throws MembershipException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void close() |
| | | { |
| | | searchesCompleted = true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(final Entry entry, |
| | | final VirtualAttributeRule rule, final ByteString value) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeVirtualAttributeProvider() |
| | | { |
| | | config.removeEntityTagChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(final Entry entry, final VirtualAttributeRule rule) |
| | | { |
| | | // Save reference to current configuration in case it changes. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult greaterThanOrEqualTo(final Entry entry, |
| | | final VirtualAttributeRule rule, final ByteString value) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(final Entry entry, final VirtualAttributeRule rule) |
| | | { |
| | | // ETag is always present. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeVirtualAttributeProvider( |
| | | final EntityTagVirtualAttributeCfg configuration) throws ConfigException, |
| | | InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | // ETag is always single-valued. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(final VirtualAttributeRule rule, |
| | | final SearchOperation searchOperation, |
| | | final boolean isPreIndexed) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult lessThanOrEqualTo(final Entry entry, |
| | | final VirtualAttributeRule rule, final ByteString value) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(final Entry entry, |
| | | final VirtualAttributeRule rule, final ByteString subInitial, |
| | | final List<ByteString> subAny, final ByteString subFinal) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(final VirtualAttributeRule rule, |
| | | final SearchOperation searchOperation) |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | String dnString = entry.getName().toString(); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | // This virtual attribute provider will always generate a value. |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule, ByteString value) |
| | | { |
| | | try |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString subInitial, |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult greaterThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult lessThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | * </UL> |
| | | * This virtual attribute also can be optimized as pre-indexed. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | return Attributes.create(rule.getAttributeType(), getUUIDString(entry)); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | // This virtual attribute provider will always generate a value. |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule, ByteString value) |
| | | { |
| | | MatchingRule matchingRule = rule.getAttributeType().getEqualityMatchingRule(); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString subInitial, |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult greaterThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult lessThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | AccountStatusNotificationHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(IdentityMapperCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeSASLMechanismHandler( |
| | | ExternalSASLMechanismHandlerCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeSASLMechanismHandler() |
| | | { |
| | | currentConfig.removeExternalChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void processSASLBind(BindOperation bindOperation) |
| | | { |
| | | ExternalSASLMechanismHandlerCfg config = currentConfig; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isPasswordBased(String mechanism) |
| | | { |
| | | // This is not a password-based mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSecure(String mechanism) |
| | | { |
| | | // This may be considered a secure mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | SASLMechanismHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | FileBasedKeyManagerProviderCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeTrustManagerProvider( |
| | | FileBasedTrustManagerProviderCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeTrustManagerProvider() |
| | | { |
| | | currentConfig.removeFileBasedChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public TrustManager[] getTrustManagers() |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | TrustManagerProviderCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasMoreMembers() |
| | | { |
| | | if (! memberDNIterator.hasNext()) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public DN nextMemberDN() throws MembershipException |
| | | { |
| | | if (! memberDNIterator.hasNext()) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Entry nextMemberEntry() throws MembershipException |
| | | { |
| | | if (! memberDNIterator.hasNext()) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void close() |
| | | { |
| | | // No implementation is required. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(CertificateMapperCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeSASLMechanismHandler( |
| | | GSSAPISASLMechanismHandlerCfg configuration) throws ConfigException, |
| | | InitializationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeSASLMechanismHandler() { |
| | | logout(); |
| | | if(configuration != null) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void processSASLBind(BindOperation bindOp) |
| | | { |
| | | ClientConnection connection = bindOp.getClientConnection(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isPasswordBased(String mechanism) |
| | | { |
| | | // This is not a password-based mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSecure(String mechanism) |
| | | { |
| | | // This may be considered a secure mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | SASLMechanismHandlerCfg configuration, List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | DITStructureRule ditRule = getDITStructureRule(entry); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | return getDITStructureRule(entry)!=null; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString subInitial, |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult greaterThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult lessThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | Backend backend = DirectoryServer.getBackend(entry.getName()); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | Backend backend = DirectoryServer.getBackend(entry.getName()); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule, ByteString value) |
| | | { |
| | | Backend backend = DirectoryServer.getBackend(entry.getName()); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString subInitial, |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult greaterThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult lessThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | // FIXME -- This probably isn't the most efficient implementation. |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | // FIXME -- This probably isn't the most efficient implementation. |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule, |
| | | ByteString value) |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString subInitial, |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult greaterThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult lessThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | * Searching for this virtual attribute cannot be pre-indexed and thus, |
| | | * it should not be searchable when pre-indexed is required. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordValidator( |
| | | LengthBasedPasswordValidatorCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizePasswordValidator() |
| | | { |
| | | currentConfig.removeLengthBasedChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PasswordValidatorCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | MD5PasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_MD5; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does not support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // MD5 may be considered reasonably secure for this purpose. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeVirtualAttributeProvider( |
| | | MemberVirtualAttributeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | if (! currentConfig.isAllowRetrievingMembership()) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | Group<?> g = |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule, ByteString value) |
| | | { |
| | | Group<?> g = |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString subInitial, |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult greaterThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult lessThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | Backend backend = DirectoryServer.getBackend(entry.getName()); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | Backend backend = DirectoryServer.getBackend(entry.getName()); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule, ByteString value) |
| | | { |
| | | Backend<?> backend = DirectoryServer.getBackend(entry.getName()); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString subInitial, |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | PKCS11KeyManagerProviderCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeWorkQueue(ParallelWorkQueueCfg configuration) |
| | | throws ConfigException, InitializationException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeWorkQueue(LocalizableMessage reason) |
| | | { |
| | | shutdownRequested = true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isIdle() |
| | | { |
| | | if (opQueue.size() > 0) { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(ExtendedOperationHandlerCfg |
| | | configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | if (!entry.isSubentry() && !entry.isLDAPSubentry()) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeSASLMechanismHandler( |
| | | PlainSASLMechanismHandlerCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeSASLMechanismHandler() |
| | | { |
| | | currentConfig.removePlainChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void processSASLBind(BindOperation bindOperation) |
| | | { |
| | | // Get the SASL credentials provided by the user and decode them. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isPasswordBased(String mechanism) |
| | | { |
| | | // This is a password-based mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSecure(String mechanism) |
| | | { |
| | | // This is not a secure mechanism. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable( |
| | | SASLMechanismHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | RC4PasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_RC4; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does not support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // This password storage scheme should be considered secure. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordGenerator( |
| | | RandomPasswordGeneratorCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizePasswordGenerator() |
| | | { |
| | | currentConfig.removeRandomChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PasswordGeneratorCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeIdentityMapper() |
| | | { |
| | | currentConfig.removeRegularExpressionChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Entry getEntryForID(String id) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(IdentityMapperCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordValidator( |
| | | RepeatedCharactersPasswordValidatorCfg configuration) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizePasswordValidator() |
| | | { |
| | | currentConfig.removeRepeatedCharactersChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | SHA1PasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_SHA_1; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does not support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // SHA-1 should be considered secure. |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | SaltedMD5PasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_SALTED_MD5; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getAuthPasswordSchemeName() |
| | | { |
| | | return AUTH_PASSWORD_SCHEME_NAME_SALTED_MD5; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // MD5 may be considered reasonably secure for this purpose. |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2010-2014 ForgeRock AS. |
| | | * Portions Copyright 2010-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | SaltedSHA1PasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_SALTED_SHA_1; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getAuthPasswordSchemeName() |
| | | { |
| | | return AUTH_PASSWORD_SCHEME_NAME_SALTED_SHA_1; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // SHA-1 should be considered secure. |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2010-2014 ForgeRock AS. |
| | | * Portions Copyright 2010-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | SaltedSHA256PasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_SALTED_SHA_256; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getAuthPasswordSchemeName() |
| | | { |
| | | return AUTH_PASSWORD_SCHEME_NAME_SALTED_SHA_256; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // SHA-2 should be considered secure. |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2010-2014 ForgeRock AS. |
| | | * Portions Copyright 2010-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | SaltedSHA384PasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_SALTED_SHA_384; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getAuthPasswordSchemeName() |
| | | { |
| | | return AUTH_PASSWORD_SCHEME_NAME_SALTED_SHA_384; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // SHA-2 should be considered secure. |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2010-2014 ForgeRock AS. |
| | | * Portions Copyright 2010-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | SaltedSHA512PasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_SALTED_SHA_512; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getAuthPasswordSchemeName() |
| | | { |
| | | return AUTH_PASSWORD_SCHEME_NAME_SALTED_SHA_512; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // SHA-2 should be considered secure. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordValidator( |
| | | SimilarityBasedPasswordValidatorCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizePasswordValidator() |
| | | { |
| | | currentConfig.removeSimilarityBasedChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasMoreMembers() |
| | | { |
| | | return memberDNIterator.hasNext(); |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public DN nextMemberDN() |
| | | throws MembershipException |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Entry nextMemberEntry() throws MembershipException |
| | | { |
| | | if (memberDNIterator.hasNext()) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void close() |
| | | { |
| | | // No implementation is required. |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void initializeGroupImplementation(StaticGroupImplementationCfg configuration) |
| | | throws ConfigException, InitializationException |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public StaticGroup newInstance(ServerContext serverContext, Entry groupEntry) throws DirectoryException |
| | | { |
| | | ifNull(groupEntry); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public SearchFilter getGroupDefinitionFilter() |
| | | throws DirectoryException |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isGroupDefinition(Entry entry) |
| | | { |
| | | ifNull(entry); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public DN getGroupDN() |
| | | { |
| | | return groupEntryDN; |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsNestedGroups() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public List<DN> getNestedGroupDNs() |
| | | { |
| | | try { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void addNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void removeNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMember(DN userDN, Set<DN> examinedGroups) throws DirectoryException |
| | | { |
| | | reloadIfNeeded(); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMember(Entry userEntry, Set<DN> examinedGroups) |
| | | throws DirectoryException |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public MemberList getMembers() throws DirectoryException |
| | | { |
| | | reloadIfNeeded(); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public MemberList getMembers(DN baseDN, SearchScope scope, SearchFilter filter) throws DirectoryException |
| | | { |
| | | reloadIfNeeded(); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean mayAlterMemberList() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void addMember(Entry userEntry) throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | ifNull(userEntry); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void removeMember(DN userDN) throws UnsupportedOperationException, DirectoryException |
| | | { |
| | | ifNull(userDN); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("StaticGroup("); |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | return Attributes.create(rule.getAttributeType(), entry |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean hasValue(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | //A structural object class is always present in an entry. |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString subInitial, |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult greaterThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult lessThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(CertificateMapperCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(CertificateMapperCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | DN schemaDN = DirectoryServer.getSchemaDN(); |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult matchesSubstring(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString subInitial, |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult greaterThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult lessThanOrEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public ConditionResult approximatelyEqualTo(Entry entry, |
| | | VirtualAttributeRule rule, |
| | | ByteString value) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeWorkQueue(TraditionalWorkQueueCfg configuration) |
| | | throws ConfigException, InitializationException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeWorkQueue(LocalizableMessage reason) |
| | | { |
| | | queueWriteLock.lock(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isIdle() |
| | | { |
| | | queueReadLock.lock(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordStorageScheme( |
| | | TripleDESPasswordStorageSchemeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getStorageSchemeName() |
| | | { |
| | | return STORAGE_SCHEME_NAME_3DES; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodePasswordWithScheme(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordMatches(ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isReversible() |
| | | { |
| | | return true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getPlaintextValue(ByteSequence storedPassword) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsAuthPasswordSyntax() |
| | | { |
| | | // This storage scheme does not support the authentication password syntax. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString encodeAuthPassword(ByteSequence plaintext) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean authPasswordMatches(ByteSequence plaintextPassword, |
| | | String authInfo, String authValue) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ByteString getAuthPasswordPlaintextValue(String authInfo, |
| | | String authValue) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isStorageSchemeSecure() |
| | | { |
| | | // This password storage scheme should be considered secure. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordValidator( |
| | | UniqueCharactersPasswordValidatorCfg configuration) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizePasswordValidator() |
| | | { |
| | | currentConfig.removeUniqueCharactersChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeVirtualAttributeProvider( |
| | | UserDefinedVirtualAttributeCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeVirtualAttributeProvider() |
| | | { |
| | | currentConfig.removeUserDefinedChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMultiValued() |
| | | { |
| | | if (currentConfig != null) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Attribute getValues(Entry entry, VirtualAttributeRule rule) |
| | | { |
| | | Set<String> userDefinedValues = currentConfig.getValue(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSearchable(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation, |
| | | boolean isPreIndexed) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void processSearch(VirtualAttributeRule rule, |
| | | SearchOperation searchOperation) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeGroupImplementation( |
| | | VirtualStaticGroupImplementationCfg configuration) |
| | | throws ConfigException, InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public VirtualStaticGroup newInstance(ServerContext serverContext, Entry groupEntry) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public SearchFilter getGroupDefinitionFilter() |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isGroupDefinition(Entry entry) |
| | | { |
| | | ifNull(entry); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public DN getGroupDN() |
| | | { |
| | | return groupEntryDN; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean supportsNestedGroups() |
| | | { |
| | | // Virtual static groups don't support nesting. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public List<DN> getNestedGroupDNs() |
| | | { |
| | | // Virtual static groups don't support nesting. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void addNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void removeNestedGroup(DN nestedGroupDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMember(DN userDN, Set<DN> examinedGroups) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isMember(Entry userEntry, Set<DN> examinedGroups) |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public MemberList getMembers() |
| | | throws DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public MemberList getMembers(DN baseDN, SearchScope scope, |
| | | SearchFilter filter) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean mayAlterMemberList() |
| | | { |
| | | return false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void addMember(Entry userEntry) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void removeMember(DN userDN) |
| | | throws UnsupportedOperationException, DirectoryException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("VirtualStaticGroup(dn="); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public void processExtendedOperation(ExtendedOperation operation) |
| | | { |
| | | // Process any supported controls for this operation, including the |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | protected void close0() |
| | | { |
| | | writer.shutdown(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeLogPublisher(FileBasedAuditLogPublisherCfg cfg, ServerContext serverContext) |
| | | throws ConfigException, InitializationException |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void logAddResponse(AddOperation addOperation) |
| | | { |
| | | if (!isLoggable(addOperation)) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void logDeleteResponse(DeleteOperation deleteOperation) |
| | | { |
| | | if (!isLoggable(deleteOperation)) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void logModifyDNResponse(ModifyDNOperation modifyDNOperation) |
| | | { |
| | | if (!isLoggable(modifyDNOperation)) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void logModifyResponse(ModifyOperation modifyOperation) |
| | | { |
| | | if (!isLoggable(modifyOperation)) |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.monitors; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getMonitorInstanceName() |
| | | { |
| | | return "JVM Memory Usage"; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public ArrayList<Attribute> getMonitorData() |
| | | { |
| | | ArrayList<Attribute> attrs = new ArrayList<Attribute>(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePlugin(final Set<PluginType> pluginTypes, |
| | | final AttributeCleanupPluginCfg configuration) throws ConfigException, |
| | | InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void initializePlugin(Set<PluginType> pluginTypes, |
| | | ChangeNumberControlPluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void finalizePlugin() |
| | | { |
| | | currentConfig.removeChangeNumberControlChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PostOperation |
| | | doPostOperation(PostOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PostOperation |
| | | doPostOperation(PostOperationDeleteOperation deleteOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void initializePlugin(Set<PluginType> pluginTypes, |
| | | EntryUUIDPluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void finalizePlugin() |
| | | { |
| | | currentConfig.removeEntryUUIDChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.ImportLDIF |
| | | doLDIFImport(LDIFImportConfig importConfig, Entry entry) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void initializePlugin(Set<PluginType> pluginTypes, |
| | | LDAPAttributeDescriptionListPluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void finalizePlugin() |
| | | { |
| | | currentConfig.removeLDAPAttributeDescriptionListChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreParse doPreParse( |
| | | PreParseSearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void initializePlugin(Set<PluginType> pluginTypes, |
| | | LastModPluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void finalizePlugin() |
| | | { |
| | | currentConfig.removeLastModChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void initializePlugin(Set<PluginType> pluginTypes, |
| | | PasswordPolicyImportPluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.ImportLDIF |
| | | doLDIFImport(LDIFImportConfig importConfig, Entry entry) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void finalizePlugin() { |
| | | currentConfiguration.removeReferentialIntegrityChangeListener(this); |
| | | if(interval > 0) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void initializePlugin(Set<PluginType> pluginTypes, |
| | | SevenBitCleanPluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void finalizePlugin() |
| | | { |
| | | currentConfig.removeSevenBitCleanChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.ImportLDIF |
| | | doLDIFImport(LDIFImportConfig importConfig, Entry entry) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreParse |
| | | doPreParse(PreParseAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreParse |
| | | doPreParse(PreParseModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreParse |
| | | doPreParse(PreParseModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void initializePlugin(Set<PluginType> pluginTypes, |
| | | UniqueAttributePluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void finalizePlugin() |
| | | { |
| | | currentConfiguration.removeUniqueAttributeChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PreOperation doPreOperation( |
| | | PreOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void doPostSynchronization( |
| | | PostSynchronizationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void doPostSynchronization( |
| | | PostSynchronizationModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void doPostSynchronization( |
| | | PostSynchronizationModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PostOperation |
| | | doPostOperation(PostOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void initializePlugin(Set<PluginType> pluginTypes, |
| | | ProfilerPluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final void finalizePlugin() |
| | | { |
| | | currentConfig.removeProfilerChangeListener(this); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.Startup doStartup() |
| | | { |
| | | ProfilerPluginCfg config = currentConfig; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializeConnectionHandler(LDIFConnectionHandlerCfg |
| | | configuration) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeConnectionHandler(LocalizableMessage finalizeReason) |
| | | { |
| | | stopRequested = true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getConnectionHandlerName() |
| | | { |
| | | return "LDIF Connection Handler"; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getProtocol() |
| | | { |
| | | return "LDIF"; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Collection<HostPort> getListeners() |
| | | { |
| | | // There are no listeners for this connection handler. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Collection<ClientConnection> getClientConnections() |
| | | { |
| | | // There are no client connections for this connection handler. |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void run() |
| | | { |
| | | isStopped = false; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("LDIFConnectionHandler(ldifDirectory=\""); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(ConnectionHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.internal; |
| | | |
| | |
| | | * @return The unique identifier that has been assigned to this |
| | | * connection. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public long getConnectionID() |
| | | { |
| | | return connectionID; |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public ConnectionHandler<?> getConnectionHandler() |
| | | { |
| | | return InternalConnectionHandler.getInstance(); |
| | |
| | | * @return The protocol that the client is using to communicate |
| | | * with the Directory Server. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getProtocol() |
| | | { |
| | | return "internal"; |
| | |
| | | * |
| | | * @return A string representation of the address of the client. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getClientAddress() |
| | | { |
| | | return "internal"; |
| | |
| | | * @return A string representation of the address on the server to |
| | | * which the client connected. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getServerAddress() |
| | | { |
| | | return "internal"; |
| | |
| | | * if the client is not connected over an IP-based |
| | | * connection. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public InetAddress getRemoteAddress() |
| | | { |
| | | return null; |
| | |
| | | * connection. It may be <CODE>null</CODE> if the client |
| | | * is not connected over an IP-based connection. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public InetAddress getLocalAddress() |
| | | { |
| | | return null; |
| | |
| | | * searches performed using this client |
| | | * connection. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setSizeLimit(int sizeLimit) |
| | | { |
| | | // No implementation required. We never want to set a nonzero |
| | |
| | | * entries that should be check for |
| | | * matches during a search. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setLookthroughLimit(int lookthroughLimit) |
| | | { |
| | | // No implementation required. We never want to set a nonzero |
| | |
| | | * allowed to remain idle before it should be |
| | | * disconnected. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setIdleTimeLimit(long idleTimeLimit) |
| | | { |
| | | // No implementation required. We never want to set a nonzero |
| | |
| | | * searches performed using this client |
| | | * connection. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setTimeLimit(int timeLimit) |
| | | { |
| | | // No implementation required. We never want to set a nonzero |
| | |
| | | * using a secure mechanism to communicate with the server, |
| | | * or <CODE>false</CODE> if not. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isSecure() |
| | | { |
| | | return true; |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public void sendResponse(Operation operation) |
| | | { |
| | | // There will not be any response sent by this method, since there |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public void setAuthenticationInfo(AuthenticationInfo |
| | | authenticationInfo) |
| | | { |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public void setUnauthenticated() |
| | | { |
| | | // No implementation required. |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public void sendSearchEntry(SearchOperation searchOperation, |
| | | SearchResultEntry searchEntry) |
| | | throws DirectoryException |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public boolean sendSearchReference(SearchOperation searchOperation, |
| | | SearchResultReference searchReference) |
| | | throws DirectoryException |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | protected boolean sendIntermediateResponseMessage( |
| | | IntermediateResponse intermediateResponse) |
| | | { |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public void disconnect(DisconnectReason disconnectReason, |
| | | boolean sendNotification, |
| | | LocalizableMessage message) |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public Collection<Operation> getOperationsInProgress() |
| | | { |
| | | return Collections.emptyList(); |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public Operation getOperationInProgress(int messageID) |
| | | { |
| | | // Internal operations will not be tracked. |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public boolean removeOperationInProgress(int messageID) |
| | | { |
| | | // No implementation is required, since internal operations will |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public CancelResult cancelOperation(int messageID, |
| | | CancelRequest cancelRequest) |
| | | { |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public void cancelAllOperations(CancelRequest cancelRequest) |
| | | { |
| | | // No implementation is required since internal operations cannot |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public void cancelAllOperationsExcept(CancelRequest cancelRequest, |
| | | int messageID) |
| | | { |
| | |
| | | * that is suitable for including in the monitor entry for |
| | | * the associated connection handler. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getMonitorSummary() |
| | | { |
| | | StringBuilder buffer = new StringBuilder(); |
| | |
| | | * @param buffer The buffer to which the information should be |
| | | * appended. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("InternalClientConnection(connID="); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.internal; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void finalizeConnectionHandler(LocalizableMessage finalizeReason) |
| | | { |
| | | // No implementation is required. |
| | |
| | | * @return A unique name that may be used to refer to this |
| | | * connection handler. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getConnectionHandlerName() |
| | | { |
| | | return "Internal Connection Handler"; |
| | |
| | | * @return The name of the protocol used to communicate with |
| | | * clients. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String getProtocol() |
| | | { |
| | | return protocol; |
| | |
| | | * connection handler does not accept connections from |
| | | * network clients. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Collection<HostPort> getListeners() |
| | | { |
| | | return listeners; |
| | |
| | | * @return The set of active client connections that have been |
| | | * established through this connection handler. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Collection<ClientConnection> getClientConnections() |
| | | { |
| | | return connectionList; |
| | |
| | | * Operates in a loop, accepting new connections and ensuring that |
| | | * requests on those connections are handled properly. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void run() |
| | | { |
| | | // No implementation is required since this connection handler |
| | |
| | | * |
| | | * @return A string representation of this connection handler. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | return "Internal Connection Handler"; |
| | |
| | | * @param buffer The buffer to which the information should be |
| | | * appended. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void toString(StringBuilder buffer) |
| | | { |
| | | buffer.append("Internal Connection Handler"); |
| | |
| | | * Return the configuration dn of the object. |
| | | * @return DN of the entry. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public DN getComponentEntryDN() { |
| | | return this.configuration.dn(); |
| | | } |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.internal; |
| | | |
| | |
| | | * from this input stream wihtout blocking. |
| | | * @throws IOException if an I/O error occurs. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public synchronized int available() throws IOException |
| | | { |
| | | if (messageReader.remaining() < 1) |
| | |
| | | * stream has been reached. If the queue is full, thenit will be |
| | | * cleared before adding the marker element. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void close() |
| | | { |
| | | socket.close(); |
| | |
| | | * @param readLimit The maximum limit of bytes that can be read |
| | | * before the mark position becomes invalid. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void mark(int readLimit) |
| | | { |
| | | // No implementation is required. |
| | |
| | | * support the use of the {@code mark} and {@code reset} |
| | | * methods. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean markSupported() |
| | | { |
| | | return false; |
| | |
| | | * @throws IOException If a problem occurs while trying to read |
| | | * data from the stream. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public synchronized int read() |
| | | throws IOException |
| | | { |
| | |
| | | * @throws IOException If a problem occurs while trying to read |
| | | * data from the stream. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int read(byte[] b) |
| | | throws IOException |
| | | { |
| | |
| | | * @throws IOException If a problem occurs while trying to read |
| | | * data from the stream. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public synchronized int read(byte[] b, int off, int len) |
| | | throws IOException |
| | | { |
| | |
| | | * have any effect, as this input stream inplementation does not |
| | | * support marking. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void reset() |
| | | { |
| | | // No implementation is required. |
| | |
| | | * @throws IOException If a problem occurs while trying to read |
| | | * data from the input stream. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public synchronized long skip(long n) |
| | | throws IOException |
| | | { |
| | |
| | | * |
| | | * @return A string representation of this internal LDAP socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | return "InternalLDAPInputStream"; |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.internal; |
| | | |
| | |
| | | * Closes this output stream, its associated socket, and the |
| | | * socket's associated input stream. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void close() |
| | | { |
| | | socket.close(); |
| | |
| | | * written out. This will have no effect, since this output |
| | | * stream implementation does not use buffering. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void flush() |
| | | { |
| | | // No implementation is required. |
| | |
| | | * @throws IOException If the output stream is closed, or if there |
| | | * is a problem with the data being written. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void write(byte[] b) |
| | | throws IOException |
| | | { |
| | |
| | | * @throws IOException If the output stream is closed, or if there |
| | | * is a problem with the data being written. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public synchronized void write(byte[] b, int off, int len) |
| | | throws IOException |
| | | { |
| | |
| | | * @throws IOException If the output stream is closed, or if there |
| | | * is a problem with the data being written. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public synchronized void write(int b) |
| | | throws IOException |
| | | { |
| | |
| | | * |
| | | * @return A string representation of this internal LDAP socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | return "InternalLDAPOutputStream"; |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.internal; |
| | | |
| | |
| | | * |
| | | * @param bindpoint The socket address to which to bind. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void bind(SocketAddress bindpoint) |
| | | { |
| | | // No implementation is required. |
| | |
| | | /** |
| | | * Closes this socket. This will make it unavailable for use. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public synchronized void close() |
| | | { |
| | | try |
| | |
| | | * |
| | | * @param endpoint The address of the remote endpoint. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public synchronized void connect(SocketAddress endpoint) |
| | | { |
| | | closed = false; |
| | |
| | | * @param timeout The maximum length of time in milliseconds to |
| | | * wait for the connection to be established. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void connect(SocketAddress endpoint, int timeout) |
| | | { |
| | | closed = false; |
| | |
| | | * @return {@code null} because this implementation does not |
| | | * support use with NIO channels. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public SocketChannel getChannel() |
| | | { |
| | | // This implementation does not support use with NIO channels. |
| | |
| | | * |
| | | * @return The address to which this socket is connected. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public InetAddress getInetAddress() |
| | | { |
| | | try |
| | |
| | | * |
| | | * @return The input stream for this socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public InternalLDAPInputStream getInputStream() |
| | | { |
| | | return inputStream; |
| | |
| | | * @return {@code true} if SO_KEEPALIVE is enabled, or |
| | | * {@code false} if not. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean getKeepAlive() |
| | | { |
| | | return keepAlive; |
| | |
| | | * |
| | | * @return The local address to which this socket is bound. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public InetAddress getLocalAddress() |
| | | { |
| | | try |
| | |
| | | * |
| | | * @return The local port to which this socket is bound. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int getLocalPort() |
| | | { |
| | | return 389; |
| | |
| | | * |
| | | * @return The local socket address to which this socket is bound. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public SocketAddress getLocalSocketAddress() |
| | | { |
| | | try |
| | |
| | | * @return {@code true} if OOBINLINE is enabled, or {@code false} |
| | | * if it is not. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean getOOBInline() |
| | | { |
| | | return oobInline; |
| | |
| | | * |
| | | * @return The output stream for this socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public InternalLDAPOutputStream getOutputStream() |
| | | { |
| | | return outputStream; |
| | |
| | | * |
| | | * @return The remote port to which this socket is connected. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int getPort() |
| | | { |
| | | return 389; |
| | |
| | | * |
| | | * @return The value of the SO_RCVBUF option for this socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int getReceiveBufferSize() |
| | | { |
| | | return receiveBufferSize; |
| | |
| | | * @return The remote socket address to which this socket is |
| | | * connected. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public SocketAddress getRemoteSocketAddress() |
| | | { |
| | | try |
| | |
| | | * @return {@code true} if SO_REUSEADDR is enabled, or |
| | | * {@code false} if it is not. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean getReuseAddress() |
| | | { |
| | | return reuseAddress; |
| | |
| | | * |
| | | * @return The value of the SO_SNDBUF option for this socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int getSendBufferSize() |
| | | { |
| | | return sendBufferSize; |
| | |
| | | * |
| | | * @return The value of the SO_LINGER option for this socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int getSoLinger() |
| | | { |
| | | return lingerDuration; |
| | |
| | | * |
| | | * @return The value of the SO_TIMEOUT option for this socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int getSoTimeout() |
| | | { |
| | | return timeout; |
| | |
| | | * @return {@code true} if TCP_NODELAY is enabled, or {@code false} |
| | | * if it is not. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean getTcpNoDelay() |
| | | { |
| | | return tcpNoDelay; |
| | |
| | | * |
| | | * @return The traffic class for this socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int getTrafficClass() |
| | | { |
| | | return trafficClass; |
| | |
| | | * @return {@code true} to indicate that the socket is bound to a |
| | | * local address. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isBound() |
| | | { |
| | | return true; |
| | |
| | | * |
| | | * @return {@code false} to indicate that the socket is not closed. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isClosed() |
| | | { |
| | | return closed; |
| | |
| | | * |
| | | * @return {@code true} to indicate that the socket is connected. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConnected() |
| | | { |
| | | return (! closed); |
| | |
| | | * @return {@code false} to indicate that the input side of this |
| | | * socket is not closed. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isInputShutdown() |
| | | { |
| | | return closed; |
| | |
| | | * @return {@code false} to indicate that the output side of this |
| | | * socket is not closed. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isOutputShutdown() |
| | | { |
| | | return closed; |
| | |
| | | * @throws IOException If a problem occurs while trying to write |
| | | * the provided data over this socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void sendUrgentData(int data) |
| | | throws IOException |
| | | { |
| | |
| | | * |
| | | * @param on The value to use for the SO_KEEPALIVE option. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setKeepAlive(boolean on) |
| | | { |
| | | keepAlive = on; |
| | |
| | | * |
| | | * @param on The value to use for the OOBINLINE option. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setOOBInline(boolean on) |
| | | { |
| | | oobInline = on; |
| | |
| | | * @param bandwidth An {@code int} expressing the relative |
| | | * importance of high bandwidth. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setPerformancePreferences(int connectionTime, |
| | | int latency, int bandwidth) |
| | | { |
| | |
| | | * |
| | | * @param size The value to use for the SO_RCVBUF option. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setReceiveBufferSize(int size) |
| | | { |
| | | receiveBufferSize = size; |
| | |
| | | * |
| | | * @param on The value to use for the SO_REUSEADDR option. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setReuseAddress(boolean on) |
| | | { |
| | | reuseAddress = on; |
| | |
| | | * |
| | | * @param size The value to use for the SO_SNDBUF option. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setSendBufferSize(int size) |
| | | { |
| | | sendBufferSize = size; |
| | |
| | | * @param linger The length of time in milliseconds to allow the |
| | | * connection to linger. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setSoLinger(boolean on, int linger) |
| | | { |
| | | lingerDuration = linger; |
| | |
| | | * |
| | | * @param timeout The value to use for the SO_TIMEOUT option. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setSoTimeout(int timeout) |
| | | { |
| | | this.timeout = timeout; |
| | |
| | | * |
| | | * @param on The value to use for the TCP_NODELAY option. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setTcpNoDelay(boolean on) |
| | | { |
| | | tcpNoDelay = on; |
| | |
| | | * |
| | | * @param tc The value to use for the traffic class. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void setTrafficClass(int tc) |
| | | { |
| | | trafficClass = tc; |
| | |
| | | * Shuts down the input side of this socket. This will have the |
| | | * effect of closing the entire socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void shutdownInput() |
| | | { |
| | | close(); |
| | |
| | | * Shuts down the output side of this socket. This will have the |
| | | * effect of closing the entire socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void shutdownOutput() |
| | | { |
| | | close(); |
| | |
| | | * |
| | | * @return A string representation of this internal LDAP socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | return "InternalLDAPSocket"; |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.internal; |
| | | |
| | |
| | | * |
| | | * @return The created internal LDAP socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Socket createSocket(InetAddress host, int port) |
| | | { |
| | | return new InternalLDAPSocket(); |
| | |
| | | * |
| | | * @return The created internal LDAP socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Socket createSocket(String host, int port) |
| | | { |
| | | return new InternalLDAPSocket(); |
| | |
| | | * |
| | | * @return The created internal LDAP socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Socket createSocket(InetAddress host, int port, |
| | | InetAddress clientHost, int clientPort) |
| | | { |
| | |
| | | * |
| | | * @return The created internal LDAP socket. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Socket createSocket(String host, int port, |
| | | InetAddress clientHost, int clientPort) |
| | | { |
| | |
| | | * @return A string representation of this internal LDAP socket |
| | | * factory. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | return "InternalLDAPSocketFactory"; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.internal; |
| | | |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public void sendSearchEntry(SearchResultEntry searchEntry) |
| | | throws DirectoryException |
| | | { |
| | |
| | | mayInstantiate=false, |
| | | mayExtend=false, |
| | | mayInvoke=false) |
| | | @Override() |
| | | @Override |
| | | public boolean sendSearchReference( |
| | | SearchResultReference searchReference) |
| | | throws DirectoryException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(ConnectionHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2010-2014 ForgeRock AS. |
| | | * Portions Copyright 2010-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public Selector getWriteSelector() |
| | | { |
| | | Selector selector = writeSelector.get(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public long getMaxBlockedWriteTimeLimit() |
| | | { |
| | | return connectionHandler.getMaxBlockedWriteTimeLimit(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(ConnectionHandlerCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public final void initializePlugin(Set<PluginType> pluginTypes, |
| | | FractionalLDIFImportPluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public final void finalizePlugin() |
| | | { |
| | | // Nothing to do |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public final void doLDIFImportEnd(LDIFImportConfig importConfig) |
| | | { |
| | | // Remove the cookie of this import session |
| | |
| | | * See class comment for what we achieve here... |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public final PluginResult.ImportLDIF doLDIFImport( |
| | | LDIFImportConfig importConfig, Entry entry) |
| | | { |
| | |
| | | } |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | public boolean isConfigurationAcceptable(PluginCfg configuration, |
| | | List<LocalizableMessage> unacceptableReasons) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools.tasks; |
| | | |
| | |
| | | * |
| | | * @return The hash code for this task entry. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int hashCode() |
| | | { |
| | | return hashCode; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean equals(Object o) |
| | | { |
| | | if (this == o) |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | * |
| | | * @return The hash code for this entry. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public int hashCode() |
| | | { |
| | | int hashCode = dn.hashCode(); |
| | |
| | | * @return {@code true} if the provided object may be considered |
| | | * equal to this entry, or {@code false} if not. |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean equals(Object o) |
| | | { |
| | | if (this == o) |
| | |
| | | * annotation, then it should be assumed the package is private and |
| | | * should not be used by third-party code. |
| | | */ |
| | | @Documented() |
| | | @Documented |
| | | @Retention(RetentionPolicy.RUNTIME) |
| | | @Target({ ElementType.PACKAGE, |
| | | ElementType.TYPE, |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | StringBuilder buffer = new StringBuilder(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | StringBuilder buffer = new StringBuilder(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | StringBuilder buffer = new StringBuilder(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | StringBuilder buffer = new StringBuilder(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.api; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the ability of the alert handler to send an administrative alert |
| | | * with no special configuration. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAlertHandler() |
| | | { |
| | | int count = DummyAlertHandler.getAlertCount(); |
| | |
| | | /** |
| | | * Tests alert handler functionality when a given alert is explicitly enabled. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEnabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * Tests alert handler functionality when a given alert is not explicitly |
| | | * enabled but others are. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNotEnabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * Tests alert handler functionality when a given alert is explicitly |
| | | * disabled. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDisabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * Tests alert handler functionality when a given alert is not explicitly |
| | | * disabled but others are. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNotDisabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * Tests alert handler functionality when a given alert is both enabled and |
| | | * disabled. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEnabledAndDisabledAlert() |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | */ |
| | | package org.opends.server.api; |
| | |
| | | * @throws Exception |
| | | * If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void beforeClass() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.api; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.api; |
| | | |
| | |
| | | assertEquals(ditMap.size(), 0); |
| | | } |
| | | |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void beforeClass() |
| | | throws Exception |
| | | { |
| | |
| | | dn9 = DN.valueOf(dn9String); |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testDITCacheMapBasicOps() |
| | | throws Exception |
| | | { |
| | |
| | | "dc=com"))); |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testDITCacheMapGetSubTree() |
| | | throws Exception |
| | | { |
| | |
| | | assertTrue(subtreeSet.contains(dn3String)); |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testDITCacheMapKeyAndEntrySet() |
| | | throws Exception |
| | | { |
| | |
| | | assertTrue(ditMap.isEmpty()); |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testDITCacheMapRemoveSubTree() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.api; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Gets simple test coverage for the default |
| | | * PasswordValidator.finalizePasswordValidator method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFinalizePasswordValidator() |
| | | { |
| | | TestPasswordValidator.getInstance().finalizePasswordValidator(); |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulValidationPasswordModifyExtOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedValidationPasswordModifyExtOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCurrentPasswordNotAvailablePasswordModifyExtOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCurrentPasswordAvailablePasswordModifyExtOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStoredPasswordAvailablePasswordModifyExtOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStoredAndCurrentPasswordAvailablePasswordModifyExtOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulValidationModify() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedValidationModify() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCurrentPasswordAvailableModify() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStoredPasswordAvailableModify() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStoredAndCurrentPasswordAvailableModify() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.api.plugin; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAbstractMethods() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNonAbstractPublicAPIMethods() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPluginEntryDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPluginTypes() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Invokes the default plugin finalizer. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDefaultFinalizer() |
| | | { |
| | | new NullPlugin().finalizePlugin(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | * Portions Copyright 2013 Manuel Gaupp |
| | | * |
| | | */ |
| | |
| | | * Test LDAP compare. |
| | | * @throws Throwable If the compare is not valid for the ACI. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompare() throws Throwable |
| | | { |
| | | SingleSearchParams adminParam = |
| | |
| | | * tree back and re-search with base at orig DN. |
| | | * @throws Throwable |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModDN() throws Throwable { |
| | | SingleSearchParams userParamOrig = SingleSearchParams.nonProxiedSearch(LEVEL_1_USER_DN, |
| | | "pa$$word", SALES_USER_1, |
| | |
| | | /** |
| | | * Test anonymous modify DN with the same RDN. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAnonymousModDNSameRDN() throws Throwable { |
| | | addEntries(BASIC_LDIF__GROUP_SEARCH_TESTS, DIR_MGR_DN, DIR_MGR_PW); |
| | | String modRDNLdif = makeModDN(OU_LEAF_DN, "ou=leaf", "1", null); |
| | |
| | | * user from a group, should fail. |
| | | * @throws Throwable If the delete succeeds. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNonSelfWrite() throws Throwable { |
| | | addEntries(BASIC_LDIF__GROUP_SEARCH_TESTS, DIR_MGR_DN, DIR_MGR_PW); |
| | | modEntries(SELFWRITE_ACI, DIR_MGR_DN, DIR_MGR_PW); |
| | |
| | | * from a group, should succeed. |
| | | * @throws Throwable If the delete fails. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSelfWrite() throws Throwable { |
| | | addEntries(BASIC_LDIF__GROUP_SEARCH_TESTS, DIR_MGR_DN, DIR_MGR_PW); |
| | | modEntries(SELFWRITE_ACI, DIR_MGR_DN, DIR_MGR_PW); |
| | |
| | | * Test ACI using dns="*" bind rule pattern. Search should succeed. |
| | | * @throws Throwable If the search doesn't return any entries. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDNSWildCard() throws Throwable { |
| | | SingleSearchParams userParam = |
| | | SingleSearchParams.nonProxiedSearch(LEVEL_1_USER_DN, |
| | |
| | | /** |
| | | * Test group bind rule ACI keywords. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGroupAcis() throws Throwable { |
| | | //group2 fail |
| | | SingleSearchParams adminParam = |
| | |
| | | * |
| | | * @throws Throwable |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGlobalAcis() throws Throwable { |
| | | SingleSearchParams monitorParam = |
| | | SingleSearchParams.nonProxiedSearch(ADMIN_DN, ADMIN_PW, MONITOR_DN, |
| | |
| | | * right test cases. |
| | | * @throws Throwable If any test cases fail after re-initialization. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAciHandlerReInit() throws Throwable { |
| | | |
| | | // Setup using global and selfwrite test cases. |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.authorization.dseecompat; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is received. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAlternateDNs() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", user1, rootDNACI); |
| | | LDIFModify(aciLdif, DIR_MGR_DN, PWD); |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is received. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAlternateProxyDNs() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", user1, rootDNACI, proxyACI, controlACI); |
| | | LDIFModify(aciLdif, DIR_MGR_DN, PWD); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.server.authorization.dseecompat; |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testExtendOpPwdWC() throws Exception { |
| | | String pwdLdifs = |
| | | makeAddLDIF("aci", peopleBase, pwdControls, extOpWC, ALLOW_ALL); |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testExtendOpPwdNotWC() throws Exception { |
| | | String pwdLdifs = |
| | | makeAddLDIF("aci", peopleBase, pwdControls, extOpNotWC, ALLOW_ALL); |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testExtendOpPwd() throws Exception { |
| | | String pwdLdifs = |
| | | makeAddLDIF("aci", peopleBase, pwdControls, extOp, ALLOW_ALL); |
| | |
| | | * @throws Exception If an unexpected result is returned. |
| | | */ |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testTargetattrSideEffect() throws Exception { |
| | | String pwdLdifs = |
| | | makeAddLDIF("aci", peopleBase, complicated); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.authorization.dseecompat; |
| | | |
| | |
| | | * @throws Exception If the search result is empty or a right string |
| | | * doesn't match the expected value. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAnonEntryLevelParams() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", "ou=People,o=test", readSearchAnonAci, |
| | | controlACI); |
| | |
| | | * @throws Exception If the search result is empty or a right string |
| | | * doesn't match the expected value. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuEntryLevelParams() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", "ou=People,o=test", aclRightsAci, |
| | | controlACI); |
| | |
| | | * @throws Exception If the search result is empty or a right string |
| | | * doesn't match the expected value. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuEntryLevelCtrl() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", "ou=People,o=test", aclRightsAci, |
| | | controlACI); |
| | |
| | | * @throws Exception If the search result is empty or a right string |
| | | * doesn't match the expected value. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testBypassEntryLevelCtrl() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", "ou=People,o=test", controlACI); |
| | | LDIFModify(aciLdif, DIR_MGR_DN, PWD); |
| | |
| | | * @throws Exception If the search result is empty or a right string |
| | | * doesn't match the expected value. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuAttrLevelParams() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", "ou=People,o=test", aclRightsAci, |
| | | controlACI); |
| | |
| | | * @throws Exception If the search result is empty or a right string |
| | | * doesn't match the expected value. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuAttrLevelParams2() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", "ou=People,o=test", aclRightsAci, |
| | | controlACI); |
| | |
| | | * @throws Exception If the search result is empty or a right string |
| | | * doesn't match the expected value. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuAttrLevelParams3() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", "ou=People,o=test", aclRightsAci, |
| | | controlACI); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is received. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNestedGroup() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", peopleBase, groupAci); |
| | | LDIFModify(aciLdif, DIR_MGR_DN, PWD); |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNestedDynamicGroup() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", peopleBase, groupAci); |
| | | LDIFModify(aciLdif, DIR_MGR_DN, PWD); |
| | |
| | | * |
| | | * @throws Exception IKf an unexpected result is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNestedCircularGroup() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", peopleBase, groupAci); |
| | | LDIFModify(aciLdif, DIR_MGR_DN, PWD); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | |
| | | /** |
| | |
| | | * |
| | | * @throws Exception If an error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAci() throws Exception { |
| | | Hashtable<String, String> env = new Hashtable<String, String>(); |
| | | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); |
| | |
| | | * |
| | | * @throws Exception If an error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testBypass() throws Exception { |
| | | Hashtable<String, String> env = new Hashtable<String, String>(); |
| | | env.put(Context.INITIAL_CONTEXT_FACTORY, factory); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.server.authorization.dseecompat; |
| | |
| | | * |
| | | * @throws Exception If results are unexpected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRef() throws Exception { |
| | | try { |
| | | String pwdLdifs = |
| | |
| | | * |
| | | * @throws Exception If results are unexpected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRefAci() throws Exception { |
| | | try { |
| | | String pwdLdifs = |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGlobalTargetAci() throws Exception { |
| | | try { |
| | | String pwdLdifs = |
| | |
| | | * |
| | | * @throws Exception If an unexpected result us returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGlobalAci() throws Exception { |
| | | try { |
| | | String pwdLdifs = |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions copyright 2011-2013 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | |
| | | /** |
| | |
| | | * |
| | | * @throws Exception If a test doesn't pass. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIntegrity() throws Exception { |
| | | //set QOP to integrity. |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * Test confidentiality settings using DIGEST-MD5. |
| | | * @throws Exception |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConfidentiality() throws Exception { |
| | | //set QOP to integrity. |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2013 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.authorization.dseecompat; |
| | | |
| | |
| | | * |
| | | * @throws Exception If a test result is unexpected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testTargetAttrUserAttr() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", user1, userAttrAci); |
| | | LDIFModify(aciLdif, DIR_MGR_DN, PWD); |
| | |
| | | * |
| | | * @throws Exception If a test result is unexpected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testTargetAttrOpAttr() throws Exception { |
| | | //Add aci that only allows non-operational attributes search/read. |
| | | String aciLdif=makeAddLDIF("aci", user1, nonOpAttrAci); |
| | |
| | | * |
| | | * @throws Exception If a test result is unexpected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testTargetAttrAllAttr() throws Exception { |
| | | //Add aci with: (targetattr = "+ || *") |
| | | String aciLdif=makeAddLDIF("aci", user1, allAttrs); |
| | |
| | | * |
| | | * @throws Exception If a test result is unexpected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testTargetAttrOpPlusAttr() throws Exception { |
| | | //Add aci with: (targetattr = "objectclass|| +") |
| | | String aciLdif=makeAddLDIF("aci", user1, ocOpAttrs); |
| | |
| | | * |
| | | * @throws Exception If a test result is unexpected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testTargetAttrUserStarAttr() throws Exception { |
| | | //Add aci with: (targetattr = "*|| aci") |
| | | String aciLdif=makeAddLDIF("aci", user1, starAciAttrs); |
| | |
| | | * |
| | | * @throws Exception If test result is unexpected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testTargetAttrSrchShorthand() throws Exception { |
| | | //Aci: (targetattrs="sn || uid || +) and search with an |
| | | //operational attr (aci). |
| | |
| | | * |
| | | * @throws Exception Exception If test result is unexpected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testTargetAttrGrpDN() throws Exception { |
| | | String aciLdif=makeAddLDIF("aci", user1, grpAttrAci); |
| | | LDIFModify(aciLdif, DIR_MGR_DN, PWD); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions copyright 2012-2013 ForgeRock AS. |
| | | * Portions Copyright 2012-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.authorization.dseecompat; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testTargetattrSideEffect() throws Exception { |
| | | String pwdLdifs = |
| | | makeAddLDIF("aci", peopleBase, complicated); |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testExtendOpControls() throws Exception { |
| | | String pwdLdifs = |
| | | makeAddLDIF("aci", peopleBase, extOpControls, extOpAll, ALLOW_ALL); |
| | |
| | | * |
| | | * @throws Exception If an unexpected result is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testBindControl() throws Exception { |
| | | String pwdLdifs = |
| | | makeAddLDIF("aci", peopleBase, pwdControls, ALLOW_ALL); |
| | |
| | | * |
| | | * @throws Exception If an unexpected result happens. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGlobalTargets() throws Exception { |
| | | String globalControlAcis= |
| | | makeAddLDIF(ATTR_AUTHZ_GLOBAL_ACI, ACCESS_HANDLER_DN, |
| | |
| | | * |
| | | * @throws Exception If an unexpected result happens. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testWildCard() throws Exception { |
| | | String aciDeny=makeAddLDIF("aci", base, controlNotWC); |
| | | String aciRight=makeAddLDIF("aci", base, aclRightsAci); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.server.authorization.dseecompat; |
| | |
| | | * |
| | | * @throws Exception If a test doesn't pass. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEntryCheckACI() throws Exception { |
| | | try { |
| | | String addACILDIF = makeAddLDIF("aci", aciUser, entryCheckACI); |
| | |
| | | debugInfo(testName, "Ending test with success"); |
| | | } |
| | | |
| | | @DataProvider() |
| | | @DataProvider |
| | | Object[][] getFilters() |
| | | { |
| | | return new Object[][] { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.backends; |
| | | |
| | |
| | | * Ensures that the Directory Server is running and gets a reference to the |
| | | * schema backend. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | |
| | | /** |
| | | * Tests the {@code isLocal} method to ensure that it is considered local. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsLocal() |
| | | { |
| | | assertTrue(schemaBackend.isLocal()); |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidEntry() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetInvalidEntry() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetSchemaEntry() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEntryExistsValidDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEntryExistsInvalidDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleBaseSearch() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleOneLevelSearch() throws Exception |
| | | { |
| | | String filterString = "(|(objectClass=*)(objectClass=ldapSubentry))"; |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleSubtreeSearch() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleSubordinateSubtreeSearch() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSearchMatchedDN() throws Exception |
| | | { |
| | | InternalClientConnection conn = getRootConnection(); |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testTreatAsUserAttrs() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddUnsupportedAttr() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveUnsupportedAttr() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAllAttributeTypes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testReplaceAllAttributeTypes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeSuccessfulNoOID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeType() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeSuccessfulReplace() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeInvalidSyntax() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeUndefinedSyntax() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeUndefinedEMR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeUndefinedOMR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeUndefinedSMR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeUndefinedAMR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeInvalidUsage() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeObsoleteSuperior() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeObsoleteEMR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeMultipleConflicts() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeUndefinedSuperior() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAttributeTypeSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveThenAddAttributeTypeSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAttributeTypeUndefined() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveSuperiorAttributeType() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAttributeTypeReferencedByObjectClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAttributeTypeReferencedByNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAttributeTypeReferencedByDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAttributeTypeReferencedByMRU() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassSuccessfulNoOID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassToAltSchemaFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassSuccessfulReplace() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassMultipleConflicts() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveThenAddAddObjectClassSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassInvalidSyntax() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassUndefinedSuperiorClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassObsoleteSuperiorClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassObsoleteRequiredAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassObsoleteOptionalAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassUndefinedRequiredAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassMultipleUndefinedRequiredAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassUndefinedOptionalAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddObjectClassMultipleUndefinedOptionalAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAbstractObjectClassWithNonAbstractSuperior() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAuxiliaryObjectClassWithStructuralSuperior() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddStructuralObjectClassWithAuxiliarySuperior() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveObjectClassSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveSuperiorObjectClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveObjectClassReferencedByNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveObjectClassReferencedByDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormToAltSchemaFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormWithUndefinedReqAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormWithMultipleUndefinedReqAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormWithUndefinedOptAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormWithMultipleUndefinedOptAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormWithUndefinedOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormWithAuxiliaryOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormWithObsoleteOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormWithObsoleteReqAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormWithObsoleteOptAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddNameFormOCConflict() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveNameFormSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveThenAddNameFormSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveNameFormReferencedByDSR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testReplaceDITContentRuleSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleToAltSchemaFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveThenAddDITContentRule() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleUndefinedOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleAuxiliaryOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleObsoleteOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleConflictingOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleUndefinedAuxOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleMultipleUndefinedAuxOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleAuxOCNotAux() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleMultipleAuxOCNotAux() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleObsoleteAuxOC() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleUndefinedReqAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleMultipleUndefinedReqAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleUndefinedOptAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleMultipleUndefinedOptAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleUndefinedNotAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleMultipleUndefinedNotAT() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleProhibitRequiredStructuralAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleProhibitRequiredAuxiliaryAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleObsoleteRequiredAttributeType() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleObsoleteOptionalAttributeType() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITContentRuleObsoleteProhibitedAttributeType() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveDITContentRuleSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITStructureRuleSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testReplaceDITStructureRuleSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITStructureRuleToAltSchemaFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAndAddDITStructureRuleSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITStructureRuleUndefinedNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITStructureRuleUndefinedSuperior() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITStructureRuleObsoleteNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDITStructureRuleObsoleteSuperiorRule() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveDITStructureRuleSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveSuperiorDITStructureRule() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMatchingRuleUseSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMatchingRuleUseToAltSchemaFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testReplaceMatchingRuleUseSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAndAddMatchingRuleUse() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMatchingRuleUseMRConflict() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMatchingRuleUseMRUndefined() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMatchingRuleUseAttributeTypeUndefined() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMatchingRuleUseAttributeTypeMultipleUndefined() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMatchingRuleUseObsoleteMatchingRule() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMatchingRuleUseObsoleteAttributeType() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveMatchingRuleUseSuccessful() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAndAddObjectClassIssue1318() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the behavior of schema backend when attribute type definitions |
| | | * are added without a space before closing parenthesis. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAttributeTypeNoSpaceBeforeParenthesis() throws Exception |
| | | { |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAndDeleteDefinitionWithExtraSpaces() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testExportLDIF() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testImportLDIF() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetComponentEntryDN() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the {@code getClassName} method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetClassName() |
| | | { |
| | | assertEquals(schemaBackend.getClassName(), SchemaBackend.class.getName()); |
| | |
| | | /** |
| | | * Tests the {@code getAlerts} method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetAlerts() |
| | | { |
| | | Map<String, String> alerts = schemaBackend.getAlerts(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.backends.jeb; |
| | | |
| | |
| | | * @throws Exception |
| | | * If the test failed unexpectedly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValidHomeDir() throws Exception { |
| | | File homeDir = new File(homeDirName); |
| | | |
| | |
| | | * @throws Exception |
| | | * If the test failed unexpectedly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEntryToAndFromDatabase() throws Exception { |
| | | ensureTheServerIsUpAndRunning(); |
| | | |
| | |
| | | * @throws Exception |
| | | * If the test failed unexpectedly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEntryToAndFromDatabaseV1() throws Exception { |
| | | ensureTheServerIsUpAndRunning(); |
| | | |
| | |
| | | * @throws Exception |
| | | * If the test failed unexpectedly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEntryToAndFromDatabase() throws Exception { |
| | | ensureTheServerIsUpAndRunning(); |
| | | |
| | |
| | | * @throws Exception |
| | | * If the test failed unexpectedly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEntryToAndFromDatabaseV1() throws Exception { |
| | | ensureTheServerIsUpAndRunning(); |
| | | |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.backends.task; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Remove the dummy task from the set of allowed tasks. |
| | | * @throws Exception If an unexpected error occurred. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void cleanUp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeletePendingTask() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteRunningTask() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteCompletedTask() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyPendingTask() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyRunningTask() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyCompletedTask() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.controls; |
| | | |
| | |
| | | /** |
| | | * Test OID |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void checkPasswordOID() throws Exception |
| | | { |
| | | assertEquals(OID_NS_PASSWORD_EXPIRED, "2.16.840.1.113730.3.4.4"); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.controls; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMustChange() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddPreEncodedPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddPasswordFailsValidation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testBindLockedDueToFailures() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareMustChange() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteMustChange() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyPasswordInHistory() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyMissingCurrentPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyMinimumPasswordAge() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNMustChange() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSearchMustChange() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.controls; |
| | | |
| | |
| | | /** |
| | | * Tests the maximum persistent search limit imposed by the server. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMaxPSearch() throws Exception |
| | | { |
| | | TestCaseUtils.initializeTestBackend(true); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.controls; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructor1() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructor2() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlValueEmptyDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlValueNonEmptyDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetAndSetRawAuthorizationDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetAndSetAuthorizationDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNNullDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationExistingNormalUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testToString() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.controls; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the constructor with an empty authorization ID. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructorEmptyAuthzID() |
| | | { |
| | | ProxiedAuthV2Control proxyControl = |
| | |
| | | * Tests the constructor with a non-empty authorization ID using the "dn:" |
| | | * form. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructorNonEmptyAuthzIDDN() |
| | | { |
| | | ProxiedAuthV2Control proxyControl = |
| | |
| | | * Tests the constructor with a non-empty authorization ID using the "u:" |
| | | * form. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructorNonEmptyAuthzIDUsername() |
| | | { |
| | | ProxiedAuthV2Control proxyControl = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlDNValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlUsernameValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlLegacyDNValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeControlLegacyUsernameValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNEmptyAuthzID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNEmptyAuthzIDDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNExistingUserDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNEmptyAuthzIDUsername() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValidatedAuthorizationDNExistingUserUsername() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testToString() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.controls; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | protected Operation[] createTestOperations() |
| | | throws Exception |
| | | { |
| | |
| | | * For some reason, the @BeforeClass method in the super class is not called. |
| | | */ |
| | | @Override |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() throws Exception { |
| | | super.startServer(); |
| | | } |
| | |
| | | /** |
| | | * Tests the <CODE>getIDToAbandon</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetIDToAbandon() |
| | | { |
| | | InternalClientConnection conn = |
| | |
| | | /** |
| | | * Tests the <CODE>cancel</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancel() |
| | | { |
| | | InternalClientConnection conn = |
| | |
| | | /** |
| | | * Tests the <CODE>getCancelRequest</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetCancelRequest() |
| | | { |
| | | InternalClientConnection conn = |
| | |
| | | * Attempts an internal abandon operation, which will fail because internal |
| | | * operations cannot be abandoned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAbandonInternal() |
| | | { |
| | | InternalClientConnection conn = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAbandonAdd() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAbandonCompare() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAbandonDelete() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAbandonExtended() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAbandonModify() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAbandonModifyDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAbandonSearch() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions copyright 2013 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the <CODE>getPasswordAttribute</CODE> method for the default password |
| | | * policy. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPasswordAttributeDefault() |
| | | { |
| | | PasswordPolicy p = DirectoryServer.getDefaultPasswordPolicy(); |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPasswordAttributeAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the <CODE>usesAuthPasswordSyntax</CODE> method for the default |
| | | * password policy. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUsesAuthPasswordSyntaxDefault() |
| | | { |
| | | PasswordPolicy p = DirectoryServer.getDefaultPasswordPolicy(); |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUsesAuthPasswordSyntaxAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetDefaultStorageSchemesDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetDefaultStorageSchemesAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsDefaultStorageSchemeDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsDefaultStorageSchemeAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetDeprecatedStorageSchemesDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetDeprecatedStorageSchemesAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsDeprecatedStorageSchemeDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsDeprecatedStorageSchemeAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPasswordValidatorsDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPasswordValidatorsAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetAccountStatusNotificationHandlersDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetAccountStatusNotificationHandlersAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowUserPasswordChangesDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowUserPasswordChangesAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequireCurrentPasswordDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequireCurrentPasswordAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testForceChangeOnAddDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testForceChangeOnAddAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testForceChangeOnResetDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testForceChangeOnResetAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSkipValidationForAdministratorsDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSkipValidationForAdministratorsAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPasswordGeneratorDNDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPasswordGeneratorDNAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPasswordGeneratorDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPasswordGeneratorAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequireSecureAuthenticationDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequireSecureAuthenticationAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequireSecurePasswordChangesDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequireSecurePasswordChangesAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowMultiplePasswordValuesDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowMultiplePasswordValuesAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowPreEncodedPasswordsDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowPreEncodedPasswordsAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetMinimumPasswordAgeDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetMinimumPasswordAgeAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetMaximumPasswordAgeDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetMaximumPasswordAgeAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetMaximumPasswordResetAgeDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetMaximumPasswordResetAgeAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetWarningIntervalDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetWarningIntervalAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testExpirePasswordsWithoutWarningDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testExpirePasswordsWithoutWarningAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowExpiredPasswordChangesDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowExpiredPasswordChangesAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetGraceLoginCountDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetGraceLoginCountAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLockoutFailureCountDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLockoutFailureCountAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLockoutDurationDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLockoutDurationAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLockoutFailureExpirationIntervalDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLockoutFailureExpirationIntervalAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetRequireChangeByTimeDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetRequireChangeByTimeAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLastLoginTimeAttributeDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLastLoginTimeAttributeAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLastLoginTimeAttributeFormatDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetLastLoginTimeFormatAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPreviousLastLoginTimeFormatsDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetPreviousLastLoginTimeFormatsAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetIdleLockoutIntervalDefault() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetIdleLockoutIntervalAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testResetWithLastLoginTime() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHistoryWithMultipleSchemes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPasswordHistoryUsingCount() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testWarningIntervalGreaterThanMaxAge() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMinAgePlusWarningIntervalGreaterThanMaxAge() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the <CODE>toString</CODE> methods with the default password policy. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testToStringDefault() |
| | | { |
| | | PasswordPolicy p = DirectoryServer.getDefaultPasswordPolicy(); |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testToStringAuth() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | * @throws Exception |
| | | * If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | |
| | | * with the default configuration settings for |
| | | * "ds-cfg-reject-unauthenticated-requests". |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAuthSearchDefCfg() |
| | | { |
| | | DirectoryServer.setRejectUnauthenticatedRequests(false); |
| | |
| | | * with the default configuration settings for |
| | | * "ds-cfg-reject-unauthenticated-requests". |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUnauthSearchDefCfg() |
| | | { |
| | | DirectoryServer.setRejectUnauthenticatedRequests(false); |
| | |
| | | * the default configuration settings for |
| | | * "ds-cfg-reject-unauthenticated-requests" . |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAuthBindDefCfg() |
| | | { |
| | | DirectoryServer.setRejectUnauthenticatedRequests(false); |
| | |
| | | * with the default configuration settings for |
| | | * "ds-cfg-reject-unauthenticated-requests". |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUnauthBindDefCfg() |
| | | { |
| | | DirectoryServer.setRejectUnauthenticatedRequests(false); |
| | |
| | | * @throws Exception |
| | | * If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAuthWAIDefCfg() throws Exception |
| | | { |
| | | DirectoryServer.setRejectUnauthenticatedRequests(false); |
| | |
| | | * @throws Exception |
| | | * If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUnauthWAIDefCfg() throws Exception |
| | | { |
| | | DirectoryServer.setRejectUnauthenticatedRequests(false); |
| | |
| | | * @throws Exception |
| | | * If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSUnauthDefCfg() throws Exception |
| | | { |
| | | DirectoryServer.setRejectUnauthenticatedRequests(false); |
| | |
| | | * @throws Exception |
| | | * If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testOtherOpsAuthDefCfg() throws Exception |
| | | { |
| | | DirectoryServer.setRejectUnauthenticatedRequests(false); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | /** |
| | | * Tests the one-level search with a lower allid threshold value. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testOneLevelSearchWithAllIDThreshold() throws Exception |
| | | { |
| | | //Set a lower value for allid threshold. We set 2. |
| | |
| | | * @throws Exception |
| | | * If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCollectiveAttributesWorkWithVirtualAttributes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | private static final String SUFFIX = "dc=example,dc=com"; |
| | | private static final String BASE = "ou=People," + SUFFIX; |
| | | |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setUp() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValidConfiguration() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValidConfigurationWithValidator() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPasswordPolicySubentryAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | * Portions copyright 2013 Manuel Gaupp |
| | | */ |
| | | package org.opends.server.core; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | protected Operation[] createTestOperations() throws Exception |
| | | { |
| | | return new ModifyDNOperationBasis[] { |
| | |
| | | * Tests performing a modify DN operation in which the new RDN contains an |
| | | * attribute type marked OBSOLETE in the server schema. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNWithObsoleteAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests a subtree rename operation to ensure that subordinate modify DN |
| | | * plugins will be invoked as expected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSubordinateModifyDNPluginsForSubtreeRename() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests a subtree move operation to ensure that subordinate modify DN |
| | | * plugins will be invoked as expected. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSubordinateModifyDNPluginsForSubtreeMove() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | |
| | | { |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override() |
| | | @Override |
| | | protected Operation[] createTestOperations() |
| | | throws Exception |
| | | { |
| | |
| | | * since there's nothing to disconnect with an internal connection, but it |
| | | * will at least exercise the code path. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUnbindInternal() |
| | | { |
| | | InvocationCounterPlugin.resetAllCounters(); |
| | |
| | | * Tests the <CODE>cancel</CODE> method to ensure that it indicates that the |
| | | * operation cannot be cancelled. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancel() |
| | | { |
| | | final InternalClientConnection conn = getRootConnection(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.crypto; |
| | | |
| | |
| | | @SuppressWarnings("javadoc") |
| | | public class CryptoManagerTestCase extends CryptoTestCase { |
| | | |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setUp() |
| | | throws Exception { |
| | | TestCaseUtils.startServer(); |
| | | } |
| | | |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void CleanUp() throws Exception { |
| | | // Removes at least secret keys added in this test case. |
| | | TestCaseUtils.restartServer(); |
| | |
| | | |
| | | @throws Exception In case an error occurs in the encryption routine. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testKeyPersistence() |
| | | throws Exception { |
| | | final CryptoManager cm = DirectoryServer.getCryptoManager(); |
| | |
| | | |
| | | @throws Exception In case something exceptional happens. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompromisedKey() throws Exception { |
| | | final CryptoManager cm = DirectoryServer.getCryptoManager(); |
| | | final String secretMessage = "zyxwvutsrqponmlkjihgfedcba"; |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.crypto; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | } |
| | | |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testInvalidRequest() throws Exception |
| | | { |
| | | CryptoManagerImpl cm = DirectoryServer.getCryptoManager(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testInitializationAndFinalization() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsPasswordBased() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsSecure() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testProcessSASLBindNoCreds() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testProcessSASLBindEmptyCreds() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testProcessSASLBindWithTraceInfo() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindNoCreds() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindWithTraceInfo() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS. |
| | | * Portions Copyright 2012-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testBlindTrustManagerProvider() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsPasswordBased() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsSecure() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindSuccessWithUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindSuccessWithDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindSuccessWithDNAndLongPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailWrongPasswordWithUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailWrongPasswordWithDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailIrreversiblePasswordWithUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailIrreversiblePasswordWithDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailInvalidDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailNoSuchUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailNullDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailIrreversiblePasswordWithRootDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testOutOfSequenceBind() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMalformedCredentials() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMalformedDigest() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMalformedDigestWithCorrectLength() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS. |
| | | * Portions Copyright 2012-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelAddOperation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelCompareOperation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelDeleteOperation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelExtendedOperation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelModifyOperation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelModifyDNOperation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelSearchOperation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelNoSuchOperation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelNoValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelMalformedValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCancelCancelExtendedOperation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * Tests the <CODE>policyForName</CODE> method with an invalid policy name. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPolicyForInvalidName() |
| | | { |
| | | assertNull(CertificateValidationPolicy.policyForName("invalid")); |
| | |
| | | /** |
| | | * Tests the <CODE>values</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValues() |
| | | { |
| | | assertNotNull(CertificateValidationPolicy.values()); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setUp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | @SuppressWarnings("unchecked") |
| | | public void entryCacheTestInit() |
| | | throws Exception |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void entryCacheTestFini() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testContainsEntry() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntry1() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntry2() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntry3() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntryID() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testPutEntry() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testPutEntryIfAbsent() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testRemoveEntry() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testClear() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testClearBackend() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testClearSubtree() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testHandleLowMemory() |
| | | throws Exception |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCacheLevels() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 profiq, s.r.o. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsPasswordBased() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsSecure() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindSuccessWithUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindSuccessWithDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailWrongPasswordWithUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailWrongPasswordWithDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailIrreversiblePasswordWithUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailIrreversiblePasswordWithDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailInvalidDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailNoSuchUserForUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailNoSuchUserForDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailEmptyUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailNullDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailEmptyAuthID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailEmptyAuthzID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailIrreversiblePasswordWithRootDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulBindReversiblePasswordWithRootDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailNonexistentAuthzDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailNonexistentAuthzUsername() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailMalformedAuthzDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testOutOfSequenceBind() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMalformedCredentials() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the {@code isMultiValued} method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsMultiValued() |
| | | { |
| | | EntryDNVirtualAttributeProvider provider = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValues() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasAnyValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasMatchingValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasNonMatchingValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMatchesSubstring() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGreaterThanOrEqualTo() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLessThanOrEqualTo() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testApproximatelyEqualTo() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHandlerEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMapperEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchWithoutBaseDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchWithValidBaseDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchWithInvalidBaseDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMismatch() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompoundFirstMatch() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompoundSecondMatch() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompoundMismatch() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testChangingMapAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testChangingMapBaseDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectChangingToNoMatchAttr() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectChangingToInvalidMatchAttr() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectChangingToInvalidMatchBaseDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the <CODE>isPasswordBased</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsPasswordBased() |
| | | { |
| | | ExternalSASLMechanismHandler handler = |
| | |
| | | /** |
| | | * Tests the <CODE>isSecure</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsSecure() |
| | | { |
| | | ExternalSASLMechanismHandler handler = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEXTERNALTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEXTERNALTrustAll() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailEXTERNALInsecureConnection() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailEXTERNALTrustAllNoSuchUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailEXTERNALTrustAllNoRequiredCert() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEXTERNALTrustAllValidOptionalCert() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailEXTERNALTrustAllInvalidOptionalCert() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEXTERNALTrustAllValidRequiredCert() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailEXTERNALTrustAllInvalidRequiredCert() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void entryCacheTestInit() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void entryCacheTestFini() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testContainsEntry() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntry1() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntry2() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntry3() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntryID() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testPutEntry() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testPutEntryIfAbsent() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testRemoveEntry() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testClear() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testClearBackend() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testClearSubtree() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testHandleLowMemory() |
| | | throws Exception |
| | |
| | | /** |
| | | * Tests cache rotation on specific number of entries. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCacheRotation() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulMappingDefaultConfig() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulMappingSHA1() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedMappingNoMatchingEntries() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedMappingMultipleMatchingEntries() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveFingerprintAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveFingerprintAlgorithm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPrivilegeWithSuccessfulMappingDefaultConfig() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void cleanup() throws Exception |
| | | { |
| | | int resultCode = TestCaseUtils.applyModifications(true, |
| | |
| | | /** |
| | | * Tests the {@code isMultiValued} method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsMultiValued() |
| | | { |
| | | GoverningStructureRuleVirtualAttributeProvider provider = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetValues() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasAnyValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasMatchingValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasNonMatchingValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the {@code isMultiValued} method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testIsMultiValued() |
| | | { |
| | | NumSubordinatesVirtualAttributeProvider provider = |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2011-2014 ForgeRock AS. |
| | | * Portions Copyright 2011-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * @throws Exception |
| | | * If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void beforeClass() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPasswordIsAcceptableNoConstraints() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPasswordIsAcceptableMinLengthConstraint() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPasswordIsAcceptableMaxLengthConstraint() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPasswordIsAcceptableMinAndMaxLengthConstraints() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNullKeyManagerProvider() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNullTrustManagerProvider() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2012 profiq, s.r.o. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | private Entry notExpired; |
| | | private Entry expired; |
| | | |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | assertEquals(expirationTime, createTime + 2592000000L); |
| | | } |
| | | |
| | | @BeforeMethod() |
| | | @BeforeMethod |
| | | public void environmentSetup() throws Exception |
| | | { |
| | | TestCaseUtils.initializeMemoryBackend(TestCaseUtils.TEST_BACKEND_ID, |
| | |
| | | true); |
| | | } |
| | | |
| | | @AfterMethod() |
| | | @AfterMethod |
| | | public void environmentCleanup() throws Exception |
| | | { |
| | | TestCaseUtils.clearMemoryBackend(TestCaseUtils.TEST_BACKEND_ID); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsRootImplicitSelfWithOldPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsRootExplicitSelfWithOldPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsAnonymousExplicitRootWithOldPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsUserImplicitSelfWithOldPasswordWithNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsUserImplicitSelfNoOldPasswordWithNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsUserImplicitSelfNoOldPasswordNoNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsUserExplicitDNColonSelfNoOldPasswordWithNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsUserExplicitUColonSelfNoOldPasswordWithNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsUserExplicitDNSelfNoOldPasswordWithNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsUserExplicitUSelfNoOldPasswordWithNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsExplicitDNColonAnonymousWithOldPasswordWithNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsExplicitUColonAnonymousWithOldPasswordWithNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRootPasswordResetNoCurrentPasswordWithNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureDNColonNoSuchUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureDNColonMalformedDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureDNColonNoSuchBaseDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureUColonNoSuchUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureUColonNoSuchUserWithCurrentPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureMalformedAuthZID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureWrongCurrentPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowPreEncoded() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailurePreEncodedNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailurePreEncodedNewPasswordWithCurrentPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the password modify extended operation over an internal connection |
| | | * with a request whose value isn't a valid encoded sequence. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureInvalidRequestValueFormat() |
| | | { |
| | | ByteString requestValue = ByteString.valueOf("malformed"); |
| | |
| | | * Tests the password modify extended operation over an internal connection |
| | | * with a request that contain an invalid sequence element type. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureInvalidSequenceElementType() throws Exception |
| | | { |
| | | ByteStringBuilder builder = new ByteStringBuilder(); |
| | |
| | | * Tests the password modify extended operation over an unauthenticated |
| | | * internal connection and without providing an authorization ID. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureCompletelyAnonymous() throws Exception |
| | | { |
| | | ByteStringBuilder builder = new ByteStringBuilder(); |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureRejectUserPasswordChanges() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureRejectUserPasswordChangesWithCurrentPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureRequireCurrentPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureRequireSecureAuthentication() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureRequireSecurePasswordChanges() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureRequireSecurePasswordChangesWithCurrentPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureWithinMinAge() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureWithinMinAgeWithCurrentPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureExpiredChangesNotAllowed() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testExpiredChangesAllowed() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureNoPasswordNoGenerator() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureNoPasswordNoGeneratorWithPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureValidatorReject() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailureValidatorRejectWithCurrentPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowMultiplePasswords() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowMultipleAuthPasswords() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpdateLastLoginTime() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpdateAuthFailureTimes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests to ensure that the SASL PLAIN mechanism is loaded and available in |
| | | * the server, and that it reports that it is password based and not secure. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSASLPlainLoaded() |
| | | { |
| | | SASLMechanismHandler<?> handler = DirectoryServer.getSASLMechanismHandler("PLAIN"); |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSASLPlainAdvertised() throws Exception |
| | | { |
| | | SearchRequest request = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSASLPlainAsRoot() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSASLPlainOverLDAP() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailNonexistentAuthzDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailNonexistentAuthzUsername() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPBindFailMalformedAuthzDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void preloadEntryCacheTestInit() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the entry cache pre-load. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEntryCachePreload() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void preloadEntryCacheTestFini() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDefaultConfiguration() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMapperEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchSingleReplacementWithoutBaseDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchSingleReplacementMultipleAttributes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchSingleReplacementWithBaseDNInScope() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchSingleReplacementWithBaseDNOutOfScope() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchSingleReplacementWithMultipleBaseDNs() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMatchPatternDoesntMatch() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchNoReplacePattern() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleMatchReplacePatternExpandsString() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPasswordIsAcceptableNoConstraints() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPasswordIsAcceptableMinDifferenceConstraint() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions copyright 2013 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void entryCacheTestInit() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void entryCacheTestFini() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testContainsEntry() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntry1() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntry2() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntry3() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testGetEntryID() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testPutEntry() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testPutEntryIfAbsent() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testRemoveEntry() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testClear() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testClearBackend() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testClearSubtree() |
| | | throws Exception |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Test() |
| | | @Test |
| | | @Override |
| | | public void testHandleLowMemory() |
| | | throws Exception |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * server in conjunction with no authentication and using a client trust store |
| | | * to validate the server certificate. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSNoAuthTrustStore() |
| | | { |
| | | String trustStorePath = DirectoryServer.getInstanceRoot() + File.separator + |
| | |
| | | * Tests the use of the StartTLS extended operation to communicate with the |
| | | * server in conjunction with no authentication and using blind trust. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSNoAuthTrustAll() |
| | | { |
| | | String[] args = |
| | |
| | | * server in conjunction with simple authentication and using a client trust |
| | | * store to validate the server certificate. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSSimpleAuthTrustStore() |
| | | { |
| | | String trustStorePath = DirectoryServer.getInstanceRoot() + File.separator + |
| | |
| | | * Tests the use of the StartTLS extended operation to communicate with the |
| | | * server in conjunction with simple authentication and using blind trust. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSSimpleAuthTrustAll() |
| | | { |
| | | String[] args = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSExternalAuthTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSExternalAuthTrustAll() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | * Portions Copyright 2013 Manuel Gaupp |
| | | */ |
| | | package org.opends.server.extensions; |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulMappingDefaultConfig() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulMappingUsingAnOID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulMappingDefaultConfigEmailAddress() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulMappingMultipleAttributes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedNoMappableAttributes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedMappingNoMatchingUsers() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedMappingMultipleMatchingUsers() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedMappingNoUserBelowBaseDNs() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveMapAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPrivilegeWithSuccessfulMappingDefaultConfig() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulMappingDefaultConfig() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulMappingAlternateSubjectAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSuccessfulMappingAlternateBaseDNs() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedMappingNoUsers() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedMappingMultipleUsers() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFailedMappingNoUserBelowBaseDNs() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveSubjectAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPrivilegeWithSuccessfulMappingDefaultConfig() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePasswordValidator( |
| | | PasswordValidatorCfg configuration) |
| | | throws InitializationException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public boolean passwordIsAcceptable(ByteString newPassword, |
| | | Set<ByteString> currentPasswords, |
| | | Operation operation, Entry userEntry, |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the use of the Who Am I? extended operation with an internal |
| | | * connection authenticated as a root user. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsInternalRootUser() |
| | | { |
| | | InternalClientConnection conn = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsInternalAnonymous() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsInternalNormalUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsLDAPRootUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsLDAPAnonymous() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAsLDAPNormalUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testWithAlternateSASLAuthzID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testWithAllowedProxiedAuthControl() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testWithDisallowedProxiedAuthControl() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.monitors; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testInitialization() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetMonitorInstanceName() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetMonitorData() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2011 profiq s.r.o. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | public class AttributeCleanupPluginTestCase extends PluginTestCase |
| | | { |
| | | |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | |
| | | * |
| | | * @throws Exception in case of bugs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRenameAttributesForAddOperation() throws Exception |
| | | { |
| | | // Configure the plugin to rename incoming 'cn' attributes to 'description'. |
| | |
| | | * Verifies the attribute removal in the incoming ADD request. |
| | | * @throws Exception in case of bugs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAttributesForAddOperation() throws Exception |
| | | { |
| | | /* Configure the plugin to remove 'modifyTimeStamp' and |
| | |
| | | * SUCCESS. |
| | | * @throws Exception in case of a bug. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAttributesForModifyOperationInvalid() throws Exception |
| | | { |
| | | /* Configure the plugin to remove 'modifyTimeStamp' and |
| | |
| | | * Verify the attribute renaming for a MODIFY operation. |
| | | * @throws Exception in case of a bug. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveAttributesForModifyOperationValid() throws Exception |
| | | { |
| | | /* Configure the plugin to remove 'modifyTimeStamp' and |
| | |
| | | /** |
| | | * Verify the attribute renaming for the MODIFY operation. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRenameAttributesForModifyOperation() throws Exception |
| | | { |
| | | /* Configure the plugin to rename the 'modifyTimeStamp' attribute to |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePlugin(Set<PluginType> pluginTypes, |
| | | PluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationBindOperation bindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationCompareOperation compareOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationDeleteOperation deleteOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationExtendedOperation extendedOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyDNOperation modifyDNOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationSearchOperation searchOperation) |
| | | throws CanceledOperationException { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePlugin(Set<PluginType> pluginTypes, |
| | | PluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse doPreParse( |
| | | PreParseAbandonOperation abandonOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse doPreParse(PreParseAddOperation addOperation) |
| | | throws CanceledOperationException { |
| | | if (disconnectInternal(addOperation, "PreParse")) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse doPreParse(PreParseBindOperation bindOperation) |
| | | { |
| | | disconnectInternal(bindOperation, "PreParse"); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseCompareOperation compareOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseDeleteOperation deleteOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseExtendedOperation extendedOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseModifyOperation modifyOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseModifyDNOperation modifyDNOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseSearchOperation searchOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseUnbindOperation unbindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationBindOperation bindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationCompareOperation compareOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationDeleteOperation deleteOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationExtendedOperation extendedOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyDNOperation modifyDNOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationSearchOperation searchOperation) |
| | | throws CanceledOperationException { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationAbandonOperation abandonOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationBindOperation bindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationCompareOperation compareOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationDeleteOperation deleteOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationExtendedOperation extendedOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationSearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationUnbindOperation unbindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseBindOperation bindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseCompareOperation compareOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseDeleteOperation deleteOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseExtendedOperation extendedOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseSearchOperation searchOperation) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoLDIFImport() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoLDIFImportWithExistingUUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoPreOperationAdd() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoPreOperationAddWithExistingUUID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePlugin(Set<PluginType> pluginTypes, |
| | | PluginCfg configuration) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseAbandonOperation abandonOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse doPreParse(PreParseAddOperation addOperation) |
| | | { |
| | | preParseCounter.incrementAndGet(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse doPreParse(PreParseBindOperation bindOperation) |
| | | { |
| | | preParseCounter.incrementAndGet(); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseCompareOperation compareOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseDeleteOperation deleteOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseExtendedOperation extendedOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseSearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseUnbindOperation unbindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationBindOperation bindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationCompareOperation compareOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationDeleteOperation deleteOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationExtendedOperation extendedOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationSearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationAbandonOperation abandonOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationBindOperation bindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationCompareOperation compareOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationDeleteOperation deleteOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationExtendedOperation extendedOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationSearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostOperation |
| | | doPostOperation(PostOperationUnbindOperation unbindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseBindOperation bindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseCompareOperation compareOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseDeleteOperation deleteOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseExtendedOperation extendedOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostResponse |
| | | doPostResponse(PostResponseSearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void doPostSynchronization(PostSynchronizationAddOperation |
| | | addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void doPostSynchronization(PostSynchronizationModifyOperation |
| | | modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void doPostSynchronization(PostSynchronizationModifyDNOperation |
| | | modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.IntermediateResponse |
| | | processSearchEntry(SearchEntrySearchOperation searchOperation, |
| | | SearchResultEntry searchEntry) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.IntermediateResponse |
| | | processSearchReference(SearchReferenceSearchOperation searchOperation, |
| | | SearchResultReference searchReference) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.SubordinateModifyDN processSubordinateModifyDN( |
| | | SubordinateModifyDNOperation modifyDNOperation, Entry oldEntry, |
| | | Entry newEntry, List<Modification> modifications) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.IntermediateResponse processIntermediateResponse( |
| | | IntermediateResponse intermediateResponse) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostConnect doPostConnect(ClientConnection |
| | | clientConnection) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PostDisconnect doPostDisconnect( |
| | | ClientConnection clientConnection, DisconnectReason disconnectReason, |
| | | LocalizableMessage message) |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.ImportLDIF doLDIFImport(LDIFImportConfig importConfig, |
| | | Entry entry) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.ImportLDIF doLDIFExport(LDIFExportConfig exportConfig, |
| | | Entry entry) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.Startup doStartup() |
| | | { |
| | | startupCalled = true; |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void doShutdown(LocalizableMessage reason) |
| | | { |
| | | shutdownCalled = true; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoPreOperationAdd() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoPreOperationModify() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoPreOperationModifyDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePlugin(Set<PluginType> pluginTypes, |
| | | PluginCfg configuration) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoLDIFImport() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddCleanAllowedDisabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDirtyAllowedDisabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddCleanAllowedEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDirtyRejectedEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddDirtyAcceptedEnabledOutsideScope() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDirtyAllowedDisabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDirtyRejectedEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDirtyToCleanAllowedEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyRemoveDirtyValueAllowedEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNDirtyAllowedDisabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNDirtyRejectedEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNDirtyToCleanAllowedEnabled() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePlugin(Set<PluginType> pluginTypes, |
| | | PluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseAbandonOperation abandonOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse doPreParse(PreParseAddOperation addOperation) |
| | | { |
| | | int resultCode = shortCircuitInternal(addOperation, "PreParse"); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse doPreParse(PreParseBindOperation bindOperation) |
| | | { |
| | | int resultCode = shortCircuitInternal(bindOperation, "PreParse"); |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseCompareOperation compareOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseDeleteOperation deleteOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseExtendedOperation extendedOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseSearchOperation searchOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreParse |
| | | doPreParse(PreParseUnbindOperation unbindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationBindOperation bindOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationCompareOperation compareOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationDeleteOperation deleteOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationExtendedOperation extendedOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyDNOperation modifyDNOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationSearchOperation searchOperation) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected result occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModDNOperation() throws Exception { |
| | | //Add an entry under the new superior DN that has a value for uid |
| | | //that will be tested for. |
| | |
| | | * |
| | | * @throws Exception If an unexpected result occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModOperationNameContexts() throws Exception { |
| | | replaceAttrInEntry(uidConfigDN,dsConfigAttrType,"mail"); |
| | | LinkedList<Modification> mods = new LinkedList<Modification>(); |
| | |
| | | * |
| | | * @throws Exception If an unexpected result occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDseeCompatAdd() throws Exception { |
| | | //Set up one plugin with mail attribute and a suffix. |
| | | replaceAttrInEntry(uidConfigDN,dsConfigAttrType,"mail"); |
| | |
| | | * |
| | | * @throws Exception If an unexpected result occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddOperation() throws Exception { |
| | | replaceAttrInEntry(uidConfigDN,dsConfigAttrType,"mail"); |
| | | replaceAttrInEntry(uidConfigDN,dsConfigBaseDN,"ou=People1,o=test", |
| | |
| | | * |
| | | * @throws Exception If an unexpected result occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddOperationNameContext() throws Exception { |
| | | replaceAttrInEntry(uidConfigDN,dsConfigAttrType,"mail"); |
| | | Entry e = makeEntry("cn=test user, ou=People,o=test"); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.plugins; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public void initializePlugin(Set<PluginType> pluginTypes, |
| | | PluginCfg configuration) |
| | | throws ConfigException |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationAddOperation addOperation) |
| | | { |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public PluginResult.PreOperation |
| | | doPreOperation(PreOperationModifyOperation modifyOperation) |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGenericConnectionHandlerMethods() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2013-2014 Manuel Gaupp |
| | | * Portions copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.asn1; |
| | | |
| | |
| | | /** |
| | | * Test the <CODE>hasNext</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasNext() throws Exception |
| | | { |
| | | GSERParser parser = new GSERParser("0"); |
| | |
| | | /** |
| | | * Test the <CODE>skipSP</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSkipSP() throws Exception |
| | | { |
| | | String[] values = {" 42"," 42","42"}; |
| | |
| | | /** |
| | | * Test the <CODE>skipMSP</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSkipMSP() throws Exception |
| | | { |
| | | String[] values = {" 42"," 42"," 42"}; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.internal; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetInstanceAndInitialize() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the <CODE>finalizeConnectionHandler</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testFinalizeConnectionHandler() |
| | | { |
| | | InternalConnectionHandler handler = InternalConnectionHandler.getInstance(); |
| | |
| | | /** |
| | | * Tests the <CODE>getClientConnections</CODE> method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetClientConnections() |
| | | { |
| | | InternalConnectionHandler handler = InternalConnectionHandler.getInstance(); |
| | |
| | | * Tests the <CODE>run</CODE> method. This will make sure that it returns as |
| | | * expected rather than actually running as a thread. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRun() |
| | | { |
| | | InternalConnectionHandler handler = InternalConnectionHandler.getInstance(); |
| | |
| | | * Tests the first <CODE>toString</CODE> method, which doesn't take any |
| | | * arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testToString1() |
| | | { |
| | | InternalConnectionHandler handler = InternalConnectionHandler.getInstance(); |
| | |
| | | * Tests the second <CODE>toString</CODE> method, which takes a |
| | | * <CODE>StringBuilder</CODE> argument. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testToString2() |
| | | { |
| | | InternalConnectionHandler handler = InternalConnectionHandler.getInstance(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.internal; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddSearchEntryWithoutListener() throws Exception |
| | | { |
| | | SearchRequest request = newSearchRequest(DN.rootDN(), SearchScope.BASE_OBJECT); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.jmx; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void cleanUp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeZeroLengthArrayAsNull() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecodeExtendedZeroLengthArrayAsNull() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * protocol. |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void binaryAttributeAddV3() throws Exception |
| | | { |
| | | //Add a binary attribute both with or without the binary option. |
| | |
| | | * transfer option using a V3 protocol. |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void nonBinaryAttributeAddV3() throws Exception |
| | | { |
| | | String filePath = TestCaseUtils.createTempFile( |
| | |
| | | * V2 protocol. |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void binaryOptionUsingV2() throws Exception |
| | | { |
| | | //Construct a V2 connection. |
| | |
| | | * protocol. |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void binaryModifyV3() throws Exception |
| | | { |
| | | String filePath = TestCaseUtils.createTempFile( |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2010-2014 ForgeRock AS. |
| | | * Portions Copyright 2010-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.protocols.ldap ; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectBindRequest() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectExtendedRequest() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectAddControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectBindControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectCompareControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectDeleteControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectModifyControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectModifyDNControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRejectSearchControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | |
| | | static int id=56; |
| | | |
| | | @Test () |
| | | @Test |
| | | public void testAbandonRequestToString() throws Exception |
| | | { |
| | | toString(new AbandonRequestProtocolOp(id)); |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testAbandonRequestEncodeDecode() throws Exception { |
| | | ByteStringBuilder builder = new ByteStringBuilder(); |
| | | ASN1Writer writer = ASN1.getWriter(builder); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | private static String newDn="cn=new dn, dc=example,dc=com"; |
| | | private static String creds="some creds"; |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testBindRequestEncodeDecode() throws Exception { |
| | | ByteStringBuilder simpleBuilder = new ByteStringBuilder(); |
| | | ASN1Writer simpleWriter = ASN1.getWriter(simpleBuilder); |
| | |
| | | assertTrue(saslOpCreds.equals(saslCreds)); |
| | | } |
| | | |
| | | @Test () |
| | | @Test |
| | | public void testBindRequestToString() throws Exception |
| | | { |
| | | ByteString bindDn=ByteString.valueOf(dn); |
| | |
| | | } |
| | | |
| | | |
| | | @Test () |
| | | @Test |
| | | public void testBindRequestToString() throws Exception |
| | | { |
| | | List<String> referralURLs=new ArrayList<String>(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS. |
| | | * Portions Copyright 2012-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | * |
| | | * @throws Exception if the handler cannot be instantiated. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPConnectionHandler() throws Exception { |
| | | Entry LDAPHandlerEntry=null; |
| | | |
| | |
| | | * it is acceptable and applied. |
| | | * @throws Exception if handler cannot be instantiated. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGoodLDAPConnectionHandlerConfiguration() throws Exception |
| | | { |
| | | Entry GoodHandlerEntry=TestCaseUtils.makeEntry( |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.server.protocols.ldap; |
| | |
| | | public class TestLDAPException extends LdapTestCase |
| | | { |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testLDAPException() |
| | | { |
| | | LocalizableMessageDescriptor.Arg1 msgDesc = ERR_ECN_INVALID_ELEMENT_TYPE; |
| | |
| | | assertTrue(StaticUtils.hasDescriptor(ex.getMessageObject(), msgDesc)); |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testLDAPExceptionThrowable() |
| | | { |
| | | LocalizableMessageDescriptor.Arg1 msgID = ERR_ECN_INVALID_ELEMENT_TYPE; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | attributes); |
| | | } |
| | | |
| | | @Test () |
| | | @Test |
| | | public void testSearchRequestToString() throws Exception |
| | | { |
| | | SearchRequestProtocolOp protocolOp = buildSearchRequestProtocolOp(); |
| | |
| | | protocolOp.toString(sb, 1); |
| | | } |
| | | |
| | | @Test () |
| | | @Test |
| | | public void testSearchRequestEncodeDecode() throws Exception |
| | | { |
| | | ByteStringBuilder builder = new ByteStringBuilder(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.protocols.ldap; |
| | | |
| | |
| | | |
| | | public class TestUnbindRequestProtocolOp extends LdapTestCase { |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testUnbindEncodeDecodeRequest() throws Exception { |
| | | ByteStringBuilder builder = new ByteStringBuilder(); |
| | | ASN1Writer writer = ASN1.getWriter(builder); |
| | |
| | | assertTrue(reqOp.getType() == req.getType()); |
| | | } |
| | | |
| | | @Test () |
| | | @Test |
| | | public void testUnbindRequestToString() throws Exception |
| | | { |
| | | UnbindRequestProtocolOp r = |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS. |
| | | * Portions Copyright 2012-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.replication; |
| | | |
| | |
| | | * Checks that changes done to the schema are pushed to the replicationServer |
| | | * clients. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void pushSchemaChange() throws Exception |
| | | { |
| | | logger.error(LocalizableMessage.raw("Starting replication test : pushSchemaChange ")); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | |
| | |
| | | /** |
| | | * Check the basic comparator on the HistoricalCsnOrderingMatchingRule |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void basicRuleTest() throws Exception |
| | | { |
| | | // Creates a rule |
| | |
| | | * a replication server and can re-build operations from the historical |
| | | * informations. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void buildAndPublishMissingChangesOneEntryTest() throws Exception |
| | | { |
| | | final int serverId = 123; |
| | |
| | | * a replication server and can re-build operations from the historical |
| | | * informations. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void buildAndPublishMissingChangesSeveralEntriesTest() throws Exception |
| | | { |
| | | final DN baseDN = DN.valueOf(TEST_ROOT_DN_STRING); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | |
| | |
| | | * Test that historical information is correctly added when performing ADD, |
| | | * MOD and MODDN operations. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void historicalAdd() throws Exception |
| | | { |
| | | final DN dn1 = DN.valueOf("cn=testHistoricalAdd,o=test"); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected error occurred. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void noUpdateIsolationPolicyTest() throws Exception |
| | | { |
| | | LDAPReplicationDomain domain = null; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | |
| | |
| | | * Test that conflict between a modify-replace and modify-add for |
| | | * multi-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replaceAndAdd() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test that conflict between a modify-replace and modify-add for |
| | | * single-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replaceAndAddSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * by doing first a replace with null, then add at at previous time |
| | | * then check that the add was ignored |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replaceWithNull() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test that conflict between modify-add and modify-replace for |
| | | * multi-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addAndReplace() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test that conflict between modify-add and modify-replace for |
| | | * single-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addAndReplaceSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test that conflict between a modify-delete-attribute and modify-add |
| | | * for multi-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void deleteAndAdd() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * add attribute-values from 2 different servers are handled correctly. |
| | | * This test was created to reproduce issue 3392. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void delValueAndAddValue() throws Exception |
| | | { |
| | | // create an entry to use with conflicts tests. |
| | |
| | | * are handled correctly. |
| | | * This test was created to reproduce and fix issue 3397. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void delValueAndDelValue() throws Exception |
| | | { |
| | | // create an entry to use with conflicts tests. |
| | |
| | | * value on a single valued attribute works correctly. |
| | | * This test was created to reproduce and fix issue 3399. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void delAttributeAndDelValueSingle() throws Exception |
| | | { |
| | | // create an entry to use with conflicts tests. |
| | |
| | | * value on a single valued attribute works correctly. |
| | | * This test was created to reproduce and fix issue 3399. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void delValueAndDelAttributeSingle() throws Exception |
| | | { |
| | | // create an entry to use with conflicts tests. |
| | |
| | | * and replayed in the non-natural order are handled correctly. |
| | | * This test was created to reproduce issue 3392. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void delValueAndAddValueDisordered() throws Exception |
| | | { |
| | | // create an entry to use with conflicts tests. |
| | |
| | | * Test that conflict between a modify-delete-attribute and modify-add |
| | | * for multi-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void deleteAndAddSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test that conflict between a modify-delete-attribute and modify-add |
| | | * for multi-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void deleteAndReplace() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * with some attribute values is resolved correctly. |
| | | * This test has been created to reproduce Issue 3397. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replaceAndDelete() throws Exception |
| | | { |
| | | // create an entry to use with conflicts tests. |
| | |
| | | * disorderly. |
| | | * This test has been created to reproduce Issue 3397. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replaceAndDeleteDisorder() throws Exception |
| | | { |
| | | AttributeType descriptionAttrType = |
| | |
| | | * Test that conflict between a modify-delete-attribute and modify-add |
| | | * for multi-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void deleteAndReplaceSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test that conflict between a modify-add and modify-add for |
| | | * multi-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addAndAdd() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * This is not a conflict in the strict definition but does exert |
| | | * the conflict resolution code. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void delAndAddSameOp() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * This is not a conflict in the strict definition but does exert |
| | | * the conflict resolution code. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void delAndReplaceSameOp() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * This is not a conflict in the strict definition but does exert |
| | | * the conflict resolution code. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addAndDelSameOp() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * - second ADD done with value1 and value2 |
| | | * This test has been created to make sure that issue 3394 is fixed. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addAndAddSameValues() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test that conflict between a modify-add and modify-add for |
| | | * single-valued attributes are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addAndAddSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test that conflict between add, delete and add on aingle valued attribute |
| | | * are handled correctly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addDelAddSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * a delete of the second value is done on another server. |
| | | * The test checks that the first value wins and stays in the entry. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addAddDelSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * modify-add of a value followed by modify-delete of that value |
| | | * is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addDeleteSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * modify-add of a value followed by modify-delete of the attribute |
| | | * is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addDeleteAttrSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * that contains a modify-add of a value followed by modify-delete |
| | | * of the same value is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replayAddDeleteSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test we can del an existing value and add a new one, and then replay |
| | | * a del of the same existing value and add of a different new one. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replayDelAddDifferent() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * Test we can del an existing value and add a new one, and then replay |
| | | * a del of another existing value and add of the same one. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replayDelAddSame() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * that contains a modify-add of a value followed by modify-delete |
| | | * of the attribute is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replayAddDeleteAttrSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * modify-replace of a value followed by modify-delete of that value |
| | | * is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replaceDeleteSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * modify-replace of a value followed by modify-delete of the attribute |
| | | * is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replaceDeleteAttrSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * that contains a modify-replace of a value followed by modify-delete |
| | | * of the same value is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replayReplaceDeleteSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * that contains a modify-replace of a value followed by modify-delete |
| | | * of the attribute is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replayReplaceDeleteAttrSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * modify-replace of a value followed by modify-delete of that value, |
| | | * followed by a modify-add of a new value is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replaceDeleteAddSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * modify-replace of a value followed by modify-delete of the attribute, |
| | | * followed by a modify-add of a new value is handled properly. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replaceDeleteAttrAddSameOpSingle() throws Exception |
| | | { |
| | | Entry entry = initializeEntry(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.plugin; |
| | | |
| | |
| | | |
| | | public class ReplicationRepairControlTest extends ReplicationTestCase |
| | | { |
| | | @Test() |
| | | @Test |
| | | public void testRepairControl() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.protocol; |
| | | |
| | |
| | | * Test that WindowMsg encoding and decoding works |
| | | * by checking that : msg == new WindowMsg(msg.getBytes()). |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void windowMsgTest() throws Exception |
| | | { |
| | | WindowMsg msg = new WindowMsg(123); |
| | |
| | | * by checking that : new WindowProbeMsg(msg.getBytes()) does not throws |
| | | * an exception. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void windowProbeMsgTest() throws Exception |
| | | { |
| | | WindowProbeMsg msg = new WindowProbeMsg(); |
| | |
| | | /** |
| | | * Test MonitorMsg. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void monitorMsgTest() throws Exception |
| | | { |
| | | int sender = 2; |
| | |
| | | * Test that EntryMsg encoding and decoding works |
| | | * by checking that : msg == new EntryMessageTest(msg.getBytes()). |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void entryMsgTest() throws Exception |
| | | { |
| | | String taskInitFromS2 = new String( |
| | |
| | | /** |
| | | * Test that InitializeRequestMsg encoding and decoding works |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void initializeRequestMsgTest() throws Exception |
| | | { |
| | | int sender = 1; |
| | |
| | | /** |
| | | * Test that InitializeTargetMsg encoding and decoding works |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void initializeTargetMsgTest() throws Exception |
| | | { |
| | | int senderID = 45678; |
| | |
| | | /** |
| | | * Test that DoneMsg encoding and decoding works |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void doneMsgTest() throws Exception |
| | | { |
| | | DoneMsg msg = new DoneMsg(1, 2); |
| | |
| | | /** |
| | | * Test that ErrorMsg encoding and decoding works |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void errorMsgTest() throws Exception |
| | | { |
| | | ErrorMsg msg = new ErrorMsg(1, 2, LocalizableMessage.raw("details")); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.server; |
| | | |
| | |
| | | * Tests the applyConfigurationChange method of the ReplicationServer |
| | | * class. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void replServerApplyChangeTest() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2014 ForgeRock AS |
| | | * Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.replication.server.changelog.file; |
| | | |
| | |
| | | assertThat(record.getValue().getCSN()).isEqualTo(msg.getCSN()); |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testAddAndReadRecords() throws Exception |
| | | { |
| | | ReplicationServer replicationServer = null; |
| | |
| | | } |
| | | } |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testClear() throws Exception |
| | | { |
| | | ReplicationServer replicationServer = null; |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Test to verify an ADD of an entry containing international characters. |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void addEntry() throws Exception |
| | | { |
| | | String filePath = TestCaseUtils.createTempFile( |
| | |
| | | * Test to verify the Sort control works well with the Collation |
| | | * Less-than-equal-to matching rule and French Locale. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSortControlLTERule() throws Exception |
| | | { |
| | | ArrayList<DN> expectedDNOrder = new ArrayList<DN>(); |
| | |
| | | * Test to verify the Sort control works with Collation equality |
| | | * matching rule and Spanish locale. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSortControlEQRule() throws Exception |
| | | { |
| | | ArrayList<DN> expectedDNOrder = new ArrayList<DN>(); |
| | |
| | | * Test to verify the Sort control works with Collation greater |
| | | * than matching rule and English locale in a descending order. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSortControlGTRule() throws Exception |
| | | { |
| | | ArrayList<DN> expectedDNOrder = new ArrayList<DN>(); |
| | |
| | | * Tests the Sort control with the VLV control using a collation equality |
| | | * matching rule. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testVLVSortControl() throws Exception |
| | | { |
| | | ArrayList<DN> expectedDNOrder = new ArrayList<DN>(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS. |
| | | * Portions Copyright 2014-2015 ForgeRock AS. |
| | | * |
| | | */ |
| | | package org.opends.server.schema; |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setUp() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests to ensure that all attribute syntaxes defined in the schema have |
| | | * valid OIDs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEnsureValidSyntaxOIDs() |
| | | { |
| | | TreeSet<String> invalidOIDs = new TreeSet<String>(); |
| | |
| | | * Tests to ensure that all matching rules defined in the schema have valid |
| | | * OIDs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEnsureValidMatchingRuleOIDs() |
| | | { |
| | | TreeSet<String> invalidOIDs = new TreeSet<String>(); |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEnsureValidAttributeTypeOIDs() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEnsureValidObjectClassOIDs() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEnsureValidNameFormOIDs() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2009-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2010-2014 ForgeRock AS. |
| | | * Portions Copyright 2010-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Test to search using the less-than relative time matching rule for expired events. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRTLessThanExpiredEvents() throws Exception |
| | | { |
| | | try |
| | |
| | | /** |
| | | * Test to search using the less-than relative time matching rule for future events. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRTLessThanFutureEvents() throws Exception |
| | | { |
| | | try |
| | |
| | | /** |
| | | * Test to search using the greater-than relative time matching rule for expired events. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRTGreaterThanExpiredEvents() throws Exception |
| | | { |
| | | try |
| | |
| | | /** |
| | | * Test to search using the greater-than relative time matching rule for future events. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRTGreaterThanFutureEvents() throws Exception |
| | | { |
| | | try |
| | |
| | | * Dates for this test are hardcoded to avoid test failures depending |
| | | * on when the tests are launched. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPartialDateNTimeMatchingRuleUsingSearch() throws Exception |
| | | { |
| | | try |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2012-2014 ForgeRock AS |
| | | * Portions Copyright 2012-2015 ForgeRock AS |
| | | * |
| | | */ |
| | | package org.opends.server.schema; |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCreateAndDecodeUTCTimeValue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecode50to99() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDecode00to49() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCreate50to99() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCreate00to49() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.tasks; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddValidSchemaFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMultipleValidSchemaFiles() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMissingSchemaFileNames() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddMissingSchemaFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddEmptySchemaFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddInvalidSchemaFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tasks; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowedTask() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tasks; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDisconnectWithNotification() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDisconnectWithoutNotification() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tasks; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Make sure that no matter what, when these tests are done the server is no |
| | | * longer in lockdown mode. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void disableLockdownMode() |
| | | { |
| | | DirectoryServer.setLockdownMode(false); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the EncodePassword tool with the --listSchemes argument. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testListSchemes() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool with the --listSchemes and |
| | | * --authPasswordSyntax arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testListAuthSchemes() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool with the --clearPassword and --storageScheme |
| | | * arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEncodeClearPassword() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool with the --clearPassword, --storageScheme, |
| | | * and --authPasswordSyntax arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEncodeClearAuthPassword() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool with the --clearPasswordFile and |
| | | * --storageScheme arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEncodeClearPasswordFromFile() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool with the --clearPasswordFile, --storageScheme, |
| | | * and --authPasswordSyntax arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEncodeClearAuthPasswordFromFile() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool with the --clearPassword and --storageScheme |
| | | * arguments using an invalid storage scheme. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEncodeClearPasswordWithInvalidScheme() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool with the --clearPassword, --storageScheme, |
| | | * and --authPasswordSyntax arguments using an invalid storage scheme. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEncodeClearPasswordWithInvalidAuthScheme() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool with the --clearPasswordFile and |
| | | * --storageScheme arguments using an a password file that doesn't exist. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEncodeClearPasswordFromMissingFile() |
| | | { |
| | | String[] args = |
| | |
| | | * --storageScheme, and --authPasswordSyntax arguments using an a password |
| | | * file that doesn't exist. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testEncodeClearAuthPasswordFromMissingFile() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with a valid matching encoded password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareMatchingPasswordsNoScheme() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with a valid matching encoded password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareMatchingPasswordsWithScheme() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with a valid matching encoded password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareMatchingEncodedPasswordsFromFile() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with a valid matching auth password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareMatchingAuthPasswords() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with a non-matching encoded password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareNonMatchingPasswordsNoScheme() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with a non-matching encoded password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareNonMatchingPasswordsWithScheme() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with a non-matching auth password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareNonMatchingAuthPasswords() |
| | | { |
| | | String[] args = |
| | |
| | | * with a valid matching encoded password using the LDAP compare result as an |
| | | * exit code. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareMatchingPasswordsNoSchemeCompareResult() |
| | | { |
| | | String[] args = |
| | |
| | | * with a valid matching encoded password using the LDAP compare result as an |
| | | * exit code. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareMatchingPasswordsWithSchemeCompareResult() |
| | | { |
| | | String[] args = |
| | |
| | | * with a valid matching auth password using the LDAP compare result as an |
| | | * exit code. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareMatchingAuthPasswordsCompareResult() |
| | | { |
| | | String[] args = |
| | |
| | | * with a non-matching encoded password using the LDAP compare result as an |
| | | * exit code. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareNonMatchingPasswordsNoSchemeCompareResult() |
| | | { |
| | | String[] args = |
| | |
| | | * with a non-matching encoded password using the LDAP compare result as an |
| | | * exit code. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareNonMatchingPasswordsWithSchemeCompareResult() |
| | | { |
| | | String[] args = |
| | |
| | | * with a non-matching auth password using the LDAP compare result as an |
| | | * exit code. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareNonMatchingAuthPasswordsCompareResult() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with a malformed encoded auth password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareInvalidEncodedAuthPassword() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with an encoded password that uses an unknown scheme. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareEncodedPasswordWithUnknownScheme() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with an encoded password that uses an unknown scheme. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareEncodedPasswordWithUnknownSeparateScheme() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the EncodePassword tool by performing a comparison of clear-text |
| | | * with an encoded auth password that uses an unknown scheme. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareEncodedAuthPasswordWithUnknownScheme() |
| | | { |
| | | String[] args = |
| | |
| | | /** |
| | | * Tests the EncodePassword tool with the help options. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHelp() |
| | | { |
| | | String[] args = { "--help" }; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the <CODE>getSASLProperties</CODE> method with an unsupported |
| | | * mechanism name. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetSASLPropertiesInvlaid() |
| | | { |
| | | LinkedHashMap<String,LocalizableMessage> properties = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSimpleBindWithValidDNAndPWNoControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSimpleBindWithNullDNAndPWNoControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSimpleBindWithEmptyDNAndPWNoControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSimpleBindWithPasswordPolicyControl() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindAnonymous() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindAnonymousNoTrace() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindAnonymousWithPasswordPolicyControl() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindCRAMMD5() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindCRAMMD5WithPasswordPolicyControl() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindDigestMD5() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindDigestMD5WithAuthzID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindDigestMD5ValidQoP() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindDigestMD5WithPasswordPolicyControl() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindExternal() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindExternalWithPasswordPolicy() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindPlain() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDoSASLBindPlainWithPasswordPolicy() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequestAuthorizationIdentityUnauthenticated() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequestAuthorizationIdentitySimpleAnonymous() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequestAuthorizationIdentitySimpleRootUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequestAuthorizationIdentitySimpleTestUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequestAuthorizationIdentitySASLAnonymous() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequestAuthorizationIdentityCRAMMD5() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequestAuthorizationIdentityDigestMD5() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequestAuthorizationIdentityExternal() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequestAuthorizationIdentityPlain() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleLDAPv2Compare() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleLDAPv3CompareTrue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleLDAPv3CompareFalse() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSSLBlindTrust() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSSLTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSBlindTrust() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleCompareSSLTrustStoreSASLExternal() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleCompareSSLTrustStoreSASLExternalValidClientCert() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleCompareSSLTrustStoreSASLExternalInvalidClientCert() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleCompareStartTLSTrustStoreSASLExternal() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCRAMMD5() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDigestMD5() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAIN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareValidBase64Assertion() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareInvalidBase64Assertion() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareAssertionValueFromFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareAssertionValueFromNonExistentFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareLDAPAssertionControlTrue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareLDAPAssertionControlNotTrue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareDNsFromFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCompareDNsFromNonExistentFile() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the LDAPCompare tool with the "--help" option. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHelp() |
| | | { |
| | | String[] args = { "--help" }; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServerAndCreatePasswordFiles() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleLDAPv2Delete() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSimpleLDAPv3Delete() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteSSLBlindTrust() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteSSLTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteStartTLSBlindTrust() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteStartTLSTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeletePLAIN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteNonExistent() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteMalformedDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteParentNoSubtreeDeleteControl() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteValidPasswordFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteInvalidPasswordFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteNonExistentPasswordFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteDNsFromFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSubtreeDelete() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSubtreeDeleteAltName() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteClientSideNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteServerSideNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteServerSideNoOpAltName() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleRequestControls() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the LDAPDelete tool with the "--help" option. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHelp() |
| | | { |
| | | String[] args = { "--help" }; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServerAndCreatePasswordFiles() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPv2Modify() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPv3Modify() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSSLBlindTrust() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSSLTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSBlindTrust() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSSLTrustStoreSASLExternal() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSSLTrustStoreSASLExternalValidClientCert() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSSLTrustStoreSASLExternalInvalidClientCert() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSTrustStoreSASLExternal() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCRAMMD5() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDigestMD5() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAIN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyClientSideNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddClientSideNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteClientSideNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNClientSideNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyLDAPNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyLDAPNoOpAltName() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddLDAPNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddLDAPNoOpAltName() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteLDAPNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteLDAPNoOpAltName() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNLDAPNoOp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNLDAPNoOpAltName() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyLDAPAssertionTrue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyLDAPAssertionFalse() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteLDAPAssertionTrue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNLDAPAssertionTrue() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyLDAPPreReadSingleAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyLDAPPreReadMultipleAttributes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDeleteLDAPPreReadSingleAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNLDAPPreReadSingleAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyLDAPostReadSingleAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyLDAPPostReadMultipleAttributes() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddLDAPostReadSingleAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDNLDAPostReadSingleAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testServerSideModifyFailure() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddExplicitChangeType() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddImplicitChangeType() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testModifyDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDelete() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpectd problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleRequestControls() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMalformedLDIF() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMalformedLDIFNoContinueOnError() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the LDAPModify tool with the "--help" option. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHelp() |
| | | { |
| | | String[] args = { "--help" }; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServerAndCreatePasswordFiles() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSelfChangeCurrentPasswordNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSelfChangeNoCurrentPasswordNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSelfChangeCurrentPasswordNoNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSelfChangeNoCurrentPasswordNoNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAuthenticatedSelfExplicitAuthzIDCurrentNew() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAuthenticatedSelfImplicitAuthzIDCurrentNew() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAuthenticatedSelfImplicitAuthzIDNoCurrentNew() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUnauthenticatedSelfChangeNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUnauthenticatedSelfChangeNoNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAdminResetNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAdminResetNoNewPassword() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSSLBlindTrust() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSSLTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSBlindTrust() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testStartTLSTrustStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testBindAndNewPasswordsFromFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testCurrentAndNewPasswordsFromFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testResetWithInvalidAuthzDN() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testResetOnNonExistentUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testResetOnDisabledUser() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUnsupportedCriticalControl() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPNoOpExplicitOID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPNoOpImplicitOID() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDAPMultipleControls() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the LDAPModify tool with the "--help" option. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHelp() |
| | | { |
| | | String[] args = { "--help" }; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the LDIFDiff tool with an argument that will simply cause it to |
| | | * display usage information. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUsage() |
| | | { |
| | | String[] args = { "--help" }; |
| | |
| | | /** |
| | | * Tests the LDIFDiff tool with an invalid set of arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testInvalidArguments() |
| | | { |
| | | String[] args = |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | |
| | | package org.opends.server.tools; |
| | |
| | | * |
| | | * @throws Exception The objectclass attribute is not returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDIFSearchStarOps() throws Exception { |
| | | String[] args = |
| | | { |
| | |
| | | * |
| | | * @throws Exception The objectclass attribute is returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDIFSearchOpsOnly() throws Exception { |
| | | String[] args = |
| | | { |
| | |
| | | * @throws Exception The objectclass attribute is returned or one of the |
| | | * specified attributes is not returned. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testLDIFSearchOpsAttrs() throws Exception { |
| | | String[] args = |
| | | { |
| | |
| | | * specified attributes is not returned. |
| | | */ |
| | | |
| | | @Test() |
| | | @Test |
| | | public void testLDIFSearchAttrsOnly() throws Exception { |
| | | |
| | | String[] args = |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the ListBackends tool with the no arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNoArguments() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the ListBackends tool with one instance of the --backendID argument |
| | | * and a valid backend ID. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSingleBackendID() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the ListBackends tool with multiple instances of the --backendID |
| | | * argument valid backend IDs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleBackendIDs() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the ListBackends tool with multiple instances of the --backendID |
| | | * argument in which one is valid and one is not. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleBackendIDsPartiallyValid() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the ListBackends tool with multiple instances of the --backendID |
| | | * argument in which all are invalid. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleBackendIDsAllInvalid() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the ListBackends tool with one instance of the --baseDN argument |
| | | * and a valid DN that is a base DN. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSingleBaseDN() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the ListBackends tool with one instance of the --baseDN argument |
| | | * and a valid DN that is not a base DN but is directly below a valid base DN. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSingleBaseDNBelowActualBaseDN() |
| | | { |
| | | String[] args = |
| | |
| | | * and a valid DN that is not a base DN but is two levels below a valid base |
| | | * DN. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSingleBaseDNTwoLevelsBelowActualBaseDN() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the ListBackends tool with one instance of the --baseDN argument |
| | | * and a valid DN that is not associated with any backend in the server |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSingleBaseDNNotBelowAnyBaseDN() |
| | | { |
| | | String[] args = |
| | |
| | | * Tests the ListBackends tool with multiple instances of the "--baseDN" |
| | | * argument with valid base DNs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleBaseDNs() |
| | | { |
| | | String[] args = |
| | |
| | | /** |
| | | * Tests the ListBackends tool with the "--help" option. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHelp() |
| | | { |
| | | String[] args = { "--help" }; |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setup() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void cleanup() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tries to rebuild an index but the index doesn't exist in the base DN. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRebuildIndexOnNonExistentShouldFail() |
| | | { |
| | | final String[] args = { |
| | |
| | | /** |
| | | * Tries to rebuild a valid index. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRebuildIndexShouldSuccess() |
| | | { |
| | | final String[] args = { |
| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | /** |
| | | * Tests display help information. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDisplaysHelpUsage() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Tests display help information. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDisplaysHelpUsage2() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Tests display help information. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDisplaysHelpUsage3() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Tests the upgrade tool with an invalid sub-command. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDoesntAllowWrongSubcommand() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Tests the upgrade tool with an invalid sub-command. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDoesntAllowWrongSubcommand2() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | * The upgrade tool disallows the force sub-command used with 'interactive |
| | | * mode'. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolDoesntAllowInteractiveAndForce() |
| | | { |
| | | final ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
| | |
| | | /** |
| | | * Upgrade tool allows use of force and no-prompt sub-commands. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpgradeToolAllowsNonInteractiveAndForce() throws Exception |
| | | { |
| | | TestCaseUtils.startServer(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setup() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void cleanup() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the verify-index -b o=airius.com -i description |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNoIndexOnDescription() |
| | | { |
| | | String[] args = { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.tools.dsconfig; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void before() |
| | | throws Exception |
| | | { |
| | |
| | | * Ensures ADS is removed. |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void afterClass() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests list-list-connection-handlers with a malformed bind DN. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMalformedBindDN() |
| | | { |
| | | String[] args = |
| | |
| | | /** |
| | | * Tests list-connection-handlers with a nonexistent bind DN. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNonExistentBindDN() |
| | | { |
| | | String[] args = |
| | |
| | | * --bindPassword and the --bindPasswordFile arguments can not be provided |
| | | * together. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConflictualArgumentsPasswordAndFilePassword() |
| | | { |
| | | String[] args = |
| | |
| | | * Quiet mode and verbose arguments can not be provided |
| | | * together. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConflictualArgumentsQuietAndVerbose() |
| | | { |
| | | String[] args = |
| | |
| | | /** |
| | | * Tests list-connection-handlers with an invalid password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testInvalidBindPassword() |
| | | { |
| | | String[] args = |
| | |
| | | /** |
| | | * Tests list-connection-handlers with an valid password. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValidBindPassword() |
| | | { |
| | | String[] args = |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValidPasswordFromFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testInvalidPasswordFromFile() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests list-connection-handlers over SSL using a trust store. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testListConnectionHandlersSSLTrustStore() |
| | | { |
| | | String trustStorePath = DirectoryServer.getInstanceRoot() + File.separator + |
| | |
| | | /** |
| | | * Tests the dsconfig with the "--help" option. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHelp() |
| | | { |
| | | String[] args = { "--noPropertiesFile", "--help" }; |
| | |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006 Brighton Consulting, Inc. |
| | | * Portions Copyright 2013-2014 ForgeRock AS. |
| | | * Portions Copyright 2013-2015 ForgeRock AS. |
| | | */ |
| | | package org.opends.server.tools.makeldif; |
| | | |
| | |
| | | * uninitialized variable when generating templates reports the |
| | | * correct line. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testParseTemplate() throws Exception |
| | | { |
| | | String[] lines = |
| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testInvalidDITContentRule() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValidSingleStructuralClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValidSingleStructuralClassAndAuxiliaryClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testNoStructuralClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleStructuralClasses() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUndefinedStructuralObjectClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUndefinedAuxiliaryObjectClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMissingAttributeRequiredByStructuralClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMissingAttributeRequiredByAuxiliaryClass() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDisallowedAttributeType() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleValuesForMultiValuedAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleValuesForSingleValuedAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMultipleValuesForSingleValuedOperationalAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAuxiliaryClassAllowedByDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAuxiliaryClassNotAllowedByDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowAttributeRequiredByDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRequireAttributeRequiredByDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDontRequireAttributeRequiredByObsoleteDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAllowAttributeAllowedByDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDontRequireAttributeAllowedByDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDontAllowAttributeProhibitedByDCR() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSatisfiesSingleValuedNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testViolatesSingleValuedNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMVViolatesSingleValuedNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testViolatesSingleValuedObsoleteNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSatisfiesRequiredMultiValuedNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testViolatesRequiredMultiValuedNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSVSatisfiesOptionalMultiValuedNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMVSatisfiesOptionalMultiValuedNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testSVViolatesOptionalMultiValuedNameForm() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDITStructureRuleConstraints() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testInvalidSuperiorAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | /** |
| | | * Tests the first constructor, which takes int and String arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructor1() |
| | | { |
| | | LocalizableMessage message = LocalizableMessage.raw("Test Constructor 1"); |
| | |
| | | * Tests the second constructor, which takes int, String, and Throwable |
| | | * arguments. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConstructor2() |
| | | { |
| | | LocalizableMessage message = LocalizableMessage.raw("Test Constructor 2"); |
| | |
| | | * |
| | | * |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setUp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void cleanUp() throws Exception |
| | | { |
| | | TestCaseUtils.dsconfig( |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5AnonymousAuthzIDSuccessfulDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5SameAuthzIDSuccessfulDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5DifferentAuthzIDSuccessfulDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5AnonymousAuthzIDSuccessfulUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5SameAuthzIDSuccessfulUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5DifferentAuthzIDSuccessfulUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5AnonymousAuthzIDFailedDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5SameUnprivAuthzIDSuccessfulDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5DifferentAuthzIDFailedDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5AnonymousAuthzIDFailedUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5SameUnprivAuthzIDSuccessfulUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDIGESTMD5DifferentAuthzIDFailedUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINAnonymousAuthzIDSuccessfulDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINSameAuthzIDSuccessfulDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINDifferentAuthzIDSuccessfulDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINAnonymousAuthzIDSuccessfulUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINSameAuthzIDSuccessfulUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINDifferentAuthzIDSuccessfulUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINAnonymousAuthzIDFailedDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINSameUnprivAuthzIDSuccessfulDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINDifferentAuthzIDFailedDNColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINAnonymousAuthzIDFailedUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINSameUnprivAuthzIDSuccessfulUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testPLAINDifferentAuthzIDFailedUColon() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testDisablePrivilege() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpdateUserPrivileges() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testUpdateRootPrivileges() throws Exception |
| | | { |
| | | // Make sure that a root connection doesn't have the proxied auth |
| | |
| | | * the set of privileges that can be configured as default root privileges, |
| | | * and that it also matches the set of privileges that can be disabled. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testConfigurablePrivilegeSets() |
| | | { |
| | | Set<String> serverPrivNames = new HashSet<String>(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasUserAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testHasOperationalAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetUserAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetOperationalAttribute() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2014 ForgeRock AS |
| | | * Portions Copyright 2011-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.types; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetters() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValues() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testMatching() |
| | | throws Exception |
| | | { |
| | |
| | | /** |
| | | * Tests the {@code toString} method. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testToString() |
| | | { |
| | | String vattrString = virtualAttribute.toString(); |
| | |
| | | * |
| | | * |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2013 ForgeRock AS |
| | | * Portions Copyright 2013-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void startServer() |
| | | throws Exception |
| | | { |
| | |
| | | * Tests the certificate manager with a valid constructor using the JKS key |
| | | * store type. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValidConstructorJKS() |
| | | { |
| | | if (! CERT_MANAGER_AVAILABLE) |
| | |
| | | * Tests the certificate manager with a valid constructor using the PKCS12 key |
| | | * store type. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testValidConstructorPKCS12() |
| | | { |
| | | if (! CERT_MANAGER_AVAILABLE) |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAliasInUseNull() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAliasInUseEmpty() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAliasInUseInvalidKeyStore() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAliasInUseJKS() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAliasInUsePKCS12() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetCertificateAliasesJKS() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetCertificateAliasesPKCS12() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetCertificateNull() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetCertificateEmpty() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetCertificateJKS() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGetCertificatePKCS12() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGenerateSelfSignedCertificateNullAlias() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGenerateSelfSignedCertificateEmptyAlias() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGenerateSelfSignedCertificateAliasInUse() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGenerateSelfSignedCertificateNullSubject() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGenerateSelfSignedCertificateEmptySubject() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGenerateSelfSignedCertificateInvalidSubject() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGenerateSelfSignedCertificateInvalidValidity() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testGenerateSelfSignedCertificateJKS() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddCertificateNullAlias() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddCertificateEmptyAlias() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddCertificateNullCertificateFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddCertificateMissingCertificateFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddCertificateFileNotFile() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddCertificateFileNotCertificate() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveCertificateNullAlias() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveCertificateEmptyAlias() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testRemoveCertificateNonexistentAlias() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If a problem occurs. |
| | | */ |
| | | @Test() |
| | | @Test |
| | | public void testAddAndRemoveCertificateJKS() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setUp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @AfterClass() |
| | | @AfterClass |
| | | public void cleanUp() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | /** |
| | | * Ensure that the source root directories are initialized properly. |
| | | */ |
| | | @BeforeClass() |
| | | @BeforeClass |
| | | public void setUp() |
| | | { |
| | | String rootDir = System.getProperty(TestCaseUtils.PROPERTY_BUILD_ROOT); |
| | |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2014 ForgeRock AS |
| | | * Portions Copyright 2014-2015 ForgeRock AS |
| | | */ |
| | | package org.opends.server.util; |
| | | |
| | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | @Override() |
| | | @Override |
| | | public String toString() |
| | | { |
| | | return "MyChangeRecordEntry()"; |