Class DigestProcessor
- java.lang.Object
-
- com.sun.enterprise.security.auth.digest.impl.DigestProcessor
-
public abstract class DigestProcessor extends Object
supports creation and validation of digest.- Author:
- K.Venugopal@sun.com
-
-
Constructor Summary
Constructors Constructor Description DigestProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringcreateDigest(Password passwd, DigestAlgorithmParameter[] params)Stringencode(byte[] dk)com.sun.enterprise.security.auth.digest.impl.DigestProcessor.MD5EncodergetMd5Encoder()protected voidsetPassword(Password passwd)protected abstract booleanvalidate(Password passwd, DigestAlgorithmParameter[] params)protected byte[]valueOf(DigestAlgorithmParameter param)
-
-
-
Method Detail
-
createDigest
public String createDigest(Password passwd, DigestAlgorithmParameter[] params) throws NoSuchAlgorithmException
- Parameters:
passwd- password to be used for digest calculation.params- digest parameter- Returns:
- Throws:
NoSuchAlgorithmException
-
validate
protected abstract boolean validate(Password passwd, DigestAlgorithmParameter[] params) throws NoSuchAlgorithmException
- Parameters:
passwd-params-- Returns:
- Throws:
NoSuchAlgorithmException
-
valueOf
protected final byte[] valueOf(DigestAlgorithmParameter param) throws NoSuchAlgorithmException
- Parameters:
param-- Returns:
- Throws:
NoSuchAlgorithmException
-
setPassword
protected void setPassword(Password passwd)
- Parameters:
passwd-
-
getMd5Encoder
public com.sun.enterprise.security.auth.digest.impl.DigestProcessor.MD5Encoder getMd5Encoder()
-
encode
public String encode(byte[] dk)
-
-