|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.resource.parlay.util.crypto.CHAPUtil
public class CHAPUtil
This class provides utility methods for the creation, use and storage of RSA public and private keys.
| Constructor Summary | |
|---|---|
CHAPUtil()
|
|
| Method Summary | |
|---|---|
byte[] |
generateCHAPRequestPacket(byte[] challenge)
used to build the CHAP Request Packet |
byte[] |
generateCHAPResponsePacket(byte identifier,
byte[] challenge,
byte[] responseName)
used to build the CHAP response packet |
byte[] |
generateMD5HashChallenge(byte request_id,
java.lang.String sharedSecret,
byte[] challenge)
Takes the challenge id, shared secret and the challenge and performs a MD5 Hash operation on it |
protected java.security.MessageDigest |
getMd5Digest()
Returns a MD5 digest. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CHAPUtil()
| Method Detail |
|---|
public byte[] generateCHAPRequestPacket(byte[] challenge)
challenge -
public byte[] generateCHAPResponsePacket(byte identifier,
byte[] challenge,
byte[] responseName)
identifier - challenge - responseName -
public byte[] generateMD5HashChallenge(byte request_id,
java.lang.String sharedSecret,
byte[] challenge)
throws java.security.NoSuchAlgorithmException
request_id - sharedSecret - challenge -
java.security.NoSuchAlgorithmException
protected java.security.MessageDigest getMd5Digest()
throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||