<name>ODL :: aaa :: ${project.artifactId}</name>
<packaging>bundle</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ </dependency>
+ </dependencies>
+
<build>
<plugins>
<plugin>
<configuration>
<instructions>
<Export-Package>
- org.opendaylight.aaa.api.password.service
+ org.opendaylight.aaa.api.password.service,
+ org.opendaylight.yang.gen.v1.urn.opendaylight.aaa.password.service.config.rev170619
</Export-Package>
</instructions>
</configuration>
*/
package org.opendaylight.aaa.api.password.service;
+import com.google.common.annotations.Beta;
+
/**
* Service responsible for generating salts and comparing passwords. This service is designed for one-way hashing only.
*/
+@Beta
public interface PasswordHashService {
/**
* @param password a plaintext password
* @return the result of hashing the password
*/
- PasswordHash getHashedPassword(String password);
+ PasswordHash getPasswordHash(String password);
/**
* Extract a hashed password using an input salt.
* @param salt the hash for <code>password</code>
* @return the result of hashing the password
*/
- PasswordHash getHashedPassword(String password, String salt);
+ PasswordHash getPasswordHash(String password, String salt);
/**
* Password comparison.