com.waveset.provision
Class PasswordGenerator
java.lang.Object
com.waveset.provision.PasswordGenerator
- public class PasswordGenerator
- extends java.lang.Object
Field Summary |
static java.lang.String |
code_id
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
code_id
public static final java.lang.String code_id
- See Also:
- Constant Field Values
PasswordGenerator
public PasswordGenerator(LighthouseContext ctx)
throws WavesetException
PasswordGenerator
public PasswordGenerator(LighthouseContext ctx,
PolicyManager policyManager)
throws WavesetException
clearPolicyPasswords
public void clearPolicyPasswords()
- Clears any preexisting policy specific passwords.
generatePassword
public EncryptedData generatePassword(Policy p,
WSUser user)
throws WavesetException
- Generate an encrypted password that complies with the specified policy.
If a generated password for the specified policy already exists in the
_policyPasswords map we will return it to ensure that all resources with
the same policy get the same generated password.
- Throws:
WavesetException
generatePassword
public EncryptedData generatePassword(Resource resource,
WSUser user)
throws WavesetException
- Generate a password suitable for one resource.
- Throws:
WavesetException
generatePassword
public EncryptedData generatePassword(WSUser user)
throws WavesetException
- Generate a password using the default Lighthouse policy.
- Throws:
WavesetException