org.apache.cxf.rs.security.oauth2.utils
Class MessageDigestGenerator
java.lang.Object
org.apache.cxf.rs.security.oauth2.utils.MessageDigestGenerator
public class MessageDigestGenerator
- extends Object
The utility Message Digest generator which can be used for generating
random values
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALGO_SHA_1
public static final String ALGO_SHA_1
- See Also:
- Constant Field Values
ALGO_SHA_256
public static final String ALGO_SHA_256
- See Also:
- Constant Field Values
ALGO_MD5
public static final String ALGO_MD5
- See Also:
- Constant Field Values
MessageDigestGenerator
public MessageDigestGenerator()
generate
public String generate(byte[] input)
throws OAuthServiceException
- Throws:
OAuthServiceException
createDigest
public byte[] createDigest(String input,
String algo)
createDigest
public byte[] createDigest(byte[] input,
String algo)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
setAlgorithm
public void setAlgorithm(String algo)
Apache CXF