java.lang.Object
cryptix.sasl.srp.SRPUtil
- public class SRPUtil
- extends java.lang.Object
A SRP-specific utility class.
- Since:
- draft-burdis-cat-sasl-srp-04
- Version:
- $Revision: 1.3 $
Constructor Summary |
private |
SRPUtil()
Trivial private constructor to enforce Singleton pattern. |
Method Summary |
(package private) static java.lang.String |
nameToID(java.lang.String mdName)
Returns a string representing the decimal value of an integer
identifying the message digest algorithm to use for the SRP
computations. |
(package private) static java.lang.String |
toProviderName(java.lang.String name)
Returns a string representing the JCE Provider-name for the designated
crypto algorithm. |
(package private) static byte[] |
xor(byte[] b1,
byte[] b2,
int length)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SRPUtil
private SRPUtil()
- Trivial private constructor to enforce Singleton pattern.
xor
static final byte[] xor(byte[] b1,
byte[] b2,
int length)
nameToID
static final java.lang.String nameToID(java.lang.String mdName)
- Returns a string representing the decimal value of an integer
identifying the message digest algorithm to use for the SRP
computations.
toProviderName
static final java.lang.String toProviderName(java.lang.String name)
- Returns a string representing the JCE Provider-name for the designated
crypto algorithm.