| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2006-2008 Sun Microsystems, Inc. |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.api; |
| | | import org.opends.messages.Message; |
| | |
| | | |
| | | import org.opends.server.admin.std.server.PasswordStorageSchemeCfg; |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.types.ByteString; |
| | | import org.opends.server.types.DirectoryException; |
| | | import org.opends.server.types.InitializationException; |
| | | |
| | | import org.opends.server.types.*; |
| | | |
| | | |
| | | /** |
| | |
| | | * @throws DirectoryException If a problem occurs while |
| | | * processing. |
| | | */ |
| | | public abstract ByteString encodePassword(ByteString plaintext) |
| | | public abstract ByteString encodePassword(ByteSequence plaintext) |
| | | throws DirectoryException; |
| | | |
| | | |
| | |
| | | * processing. |
| | | */ |
| | | public abstract ByteString encodePasswordWithScheme( |
| | | ByteString plaintext) |
| | | ByteSequence plaintext) |
| | | throws DirectoryException; |
| | | |
| | | |
| | |
| | | * the provided stored password, or {@code false} if not. |
| | | */ |
| | | public abstract boolean passwordMatches( |
| | | ByteString plaintextPassword, |
| | | ByteString storedPassword); |
| | | ByteSequence plaintextPassword, |
| | | ByteSequence storedPassword); |
| | | |
| | | |
| | | |
| | |
| | | * support the authentication password |
| | | * syntax. |
| | | */ |
| | | public abstract ByteString encodeAuthPassword(ByteString plaintext) |
| | | throws DirectoryException; |
| | | public abstract ByteString encodeAuthPassword( |
| | | ByteSequence plaintext) throws DirectoryException; |
| | | |
| | | |
| | | |
| | |
| | | * password syntax. |
| | | */ |
| | | public abstract boolean authPasswordMatches( |
| | | ByteString plaintextPassword, |
| | | ByteSequence plaintextPassword, |
| | | String authInfo, String authValue); |
| | | |
| | | |
| | |
| | | * stored password. |
| | | */ |
| | | public abstract ByteString getPlaintextValue( |
| | | ByteString storedPassword) |
| | | ByteSequence storedPassword) |
| | | throws DirectoryException; |
| | | |
| | | |