com.waveset.provision
Class PasswordGenerator

java.lang.Object
  extended bycom.waveset.provision.PasswordGenerator

public class PasswordGenerator
extends java.lang.Object


Field Summary
static java.lang.String code_id
           
 
Constructor Summary
PasswordGenerator(LighthouseContext ctx)
           
PasswordGenerator(LighthouseContext ctx, PolicyManager policyManager)
           
 
Method Summary
 void clearPolicyPasswords()
          Clears any preexisting policy specific passwords.
 EncryptedData generatePassword(Policy p, WSUser user)
          Generate an encrypted password that complies with the specified policy.
 EncryptedData generatePassword(Resource resource, WSUser user)
          Generate a password suitable for one resource.
 EncryptedData generatePassword(WSUser user)
          Generate a password using the default Lighthouse policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values
Constructor Detail

PasswordGenerator

public PasswordGenerator(LighthouseContext ctx)
                  throws WavesetException

PasswordGenerator

public PasswordGenerator(LighthouseContext ctx,
                         PolicyManager policyManager)
                  throws WavesetException
Method Detail

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