|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.util.SecurityUtils
public class SecurityUtils
Constructor Summary | |
---|---|
SecurityUtils()
|
Method Summary | |
---|---|
static java.security.PrivateKey |
decodePrivateKeyFromBase64(java.lang.String enc)
Decodes a private key from an encoded value. |
static java.security.PrivateKey |
decodePrivateKeyFromBase64(java.lang.String enc,
java.lang.String algo)
Decodes a private key from an encoded value. |
static java.security.PrivateKey |
decodePrivateKeyFromHex(java.lang.String enc)
Decodes a private key from an encoded value. |
static java.security.PrivateKey |
decodePrivateKeyFromHex(java.lang.String enc,
java.lang.String algo)
Decodes a private key from an encoded value. |
static java.security.PublicKey |
decodePublicKeyFromBase64(java.lang.String enc)
Decodes a public key from an encoded value. |
static java.security.PublicKey |
decodePublicKeyFromBase64(java.lang.String enc,
java.lang.String algo)
Decodes a public key from an encoded value. |
static java.security.PublicKey |
decodePublicKeyFromHex(java.lang.String enc)
Decodes a public key from an encoded value. |
static java.security.PublicKey |
decodePublicKeyFromHex(java.lang.String enc,
java.lang.String algo)
Decodes a public key from an encoded value. |
static java.lang.String |
encodeToBase64(java.security.PrivateKey privk)
|
static java.lang.String |
encodeToBase64(java.security.PublicKey pubk)
|
static java.lang.String |
encodeToHex(java.security.PrivateKey privk)
|
static java.lang.String |
encodeToHex(java.security.PublicKey pubk)
|
static byte[] |
md5Hash(byte[] data)
Returns the MD5 hash for the data passed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityUtils()
Method Detail |
---|
public static java.lang.String encodeToHex(java.security.PrivateKey privk)
public static java.lang.String encodeToHex(java.security.PublicKey pubk)
public static java.lang.String encodeToBase64(java.security.PrivateKey privk)
public static java.lang.String encodeToBase64(java.security.PublicKey pubk)
public static java.security.PublicKey decodePublicKeyFromHex(java.lang.String enc, java.lang.String algo) throws java.lang.Exception
enc
- the hex string.
java.lang.Exception
public static java.security.PrivateKey decodePrivateKeyFromHex(java.lang.String enc, java.lang.String algo) throws java.lang.Exception
enc
- the hex string.
java.lang.Exception
public static java.security.PublicKey decodePublicKeyFromHex(java.lang.String enc) throws java.lang.Exception
enc
- the hex string.
java.lang.Exception
public static java.security.PrivateKey decodePrivateKeyFromHex(java.lang.String enc) throws java.lang.Exception
enc
- the hex string.
java.lang.Exception
public static java.security.PublicKey decodePublicKeyFromBase64(java.lang.String enc) throws java.lang.Exception
enc
- the hex string.
java.lang.Exception
public static java.security.PrivateKey decodePrivateKeyFromBase64(java.lang.String enc) throws java.lang.Exception
enc
- the hex string.
java.lang.Exception
public static java.security.PublicKey decodePublicKeyFromBase64(java.lang.String enc, java.lang.String algo) throws java.lang.Exception
enc
- the hex string.
java.lang.Exception
public static java.security.PrivateKey decodePrivateKeyFromBase64(java.lang.String enc, java.lang.String algo) throws java.lang.Exception
enc
- the hex string.
java.lang.Exception
public static byte[] md5Hash(byte[] data)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |