info.informatica.security.auth
Class CryptFactory
java.lang.Object
info.informatica.security.auth.CryptFactory
public class CryptFactory
- extends Object
Can be used to create CryptScheme instances.
- Author:
- Carlos Amengual (amengual at informatica.info)
CryptFactory
public CryptFactory()
CryptFactory
public CryptFactory(String defaultCryptId)
putCryptProvider
public void putCryptProvider(CryptScheme sch)
- Set a CryptScheme provider class.
After you are done adding Crypts, you must call init() to initialize
them.
- Parameters:
sch - the Crypt provider.
getCryptScheme
public CryptScheme getCryptScheme(String schemeid)
- Gets the CryptScheme.
- Returns:
- the CryptScheme, or null if no scheme found for the given ID.
setDefaultSchemeId
public void setDefaultSchemeId(String schemeid)
throws AuthenticationHashException
- Throws:
AuthenticationHashException
getDefaultSchemeId
public String getDefaultSchemeId()
createCryptScheme
public CryptScheme createCryptScheme(String schemeclass)
throws AuthenticationHashException
- Throws:
AuthenticationHashException
parse
public PasswordAccount parse(String passinfo)