Class Util
java.lang.Object
org.dogtagpki.tps.main.Util
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic bytebool2Byte(boolean value) static TPSBuffercomputeEncEcbDes(org.mozilla.jss.pkcs11.PK11SymKey symKey, TPSBuffer input) static TPSBuffercomputeMAC(org.mozilla.jss.pkcs11.PK11SymKey symKey, TPSBuffer input, TPSBuffer icv) static TPSBuffercomputeMACdes3des(org.mozilla.jss.pkcs11.PK11SymKey symKey, TPSBuffer input, TPSBuffer initialIcv) static TPSBufferencryptData(TPSBuffer dataToEnc, org.mozilla.jss.pkcs11.PK11SymKey encKey) static TPSBufferencryptDataAES(TPSBuffer dataToEnc, org.mozilla.jss.pkcs11.PK11SymKey encKey, TPSBuffer iv) static StringgetCertAkiString(org.mozilla.jss.netscape.security.x509.X509CertImpl cert) static StringgetCertSkiString(org.mozilla.jss.netscape.security.x509.X509CertImpl cert) static StringgetTimeStampString(boolean addMicroSeconds) static inthexToBin(char ch) static StringintToHex(int val) static TPSBufferspecialDecode(String str) static StringspecialEncode(TPSBuffer data) static StringspecialURLEncode(byte[] data) static StringspecialURLEncode(TPSBuffer data) static byte[]static Stringstatic byte[]uriDecodeFromHex(String buff) static Stringstatic StringuriEncodeInHex(byte[] buff)
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
str2ByteArray
-
bool2Byte
public static byte bool2Byte(boolean value) -
hexToBin
public static int hexToBin(char ch) -
intToHex
-
uriDecode
- Throws:
UnsupportedEncodingException
-
uriEncode
- Throws:
UnsupportedEncodingException
-
uriDecodeFromHex
-
uriEncodeInHex
-
specialURLEncode
-
specialURLEncode
-
specialEncode
-
computeEncEcbDes
public static TPSBuffer computeEncEcbDes(org.mozilla.jss.pkcs11.PK11SymKey symKey, TPSBuffer input) throws EBaseException - Throws:
EBaseException
-
computeMACdes3des
public static TPSBuffer computeMACdes3des(org.mozilla.jss.pkcs11.PK11SymKey symKey, TPSBuffer input, TPSBuffer initialIcv) throws EBaseException - Throws:
EBaseException
-
computeMAC
public static TPSBuffer computeMAC(org.mozilla.jss.pkcs11.PK11SymKey symKey, TPSBuffer input, TPSBuffer icv) throws EBaseException - Throws:
EBaseException
-
specialDecode
-
encryptDataAES
public static TPSBuffer encryptDataAES(TPSBuffer dataToEnc, org.mozilla.jss.pkcs11.PK11SymKey encKey, TPSBuffer iv) throws EBaseException - Throws:
EBaseException
-
encryptData
public static TPSBuffer encryptData(TPSBuffer dataToEnc, org.mozilla.jss.pkcs11.PK11SymKey encKey) throws EBaseException - Throws:
EBaseException
-
getCertAkiString
public static String getCertAkiString(org.mozilla.jss.netscape.security.x509.X509CertImpl cert) throws EBaseException, IOException - Throws:
EBaseExceptionIOException
-
getCertSkiString
public static String getCertSkiString(org.mozilla.jss.netscape.security.x509.X509CertImpl cert) throws EBaseException, IOException - Throws:
EBaseExceptionIOException
-
getTimeStampString
-