Package org.glassfish.security.common
Class PasswordAliasResolverImpl
- java.lang.Object
-
- org.glassfish.security.common.PasswordAliasResolverImpl
-
- All Implemented Interfaces:
PasswordAliasResolver
public class PasswordAliasResolverImpl extends Object implements PasswordAliasResolver
Provides password alias resolution, using an internal password alias store to actually resolve an alias if one is specified.- Author:
- tjquinn
-
-
Constructor Summary
Constructors Constructor Description PasswordAliasResolverImpl(PasswordAliasStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char[]
resolvePassword(String aliasExpressionOrPassword)
Returns the password from the argument, processing (if present) an expression of the form ${ALIAS=aliasName} using a PasswordAliasStore.
-
-
-
Constructor Detail
-
PasswordAliasResolverImpl
public PasswordAliasResolverImpl(PasswordAliasStore store)
-
-
Method Detail
-
resolvePassword
public char[] resolvePassword(String aliasExpressionOrPassword)
Description copied from interface:PasswordAliasResolver
Returns the password from the argument, processing (if present) an expression of the form ${ALIAS=aliasName} using a PasswordAliasStore. If the argument is not such an expression then the returned value is the character array for that string. If the argument is an alias expression then the alias name is resolved using an internal PasswordAliasStore and the corresponding password is returned.- Specified by:
resolvePassword
in interfacePasswordAliasResolver
- Parameters:
aliasExpressionOrPassword
- either a password or a password alias expression- Returns:
- the resolved password
-
-