public interface ITransportKeyUnit extends IEncryptionUnit
| Modifier and Type | Method and Description |
|---|---|
org.mozilla.jss.crypto.X509Certificate |
getCertificate()
Retrieves public key.
|
org.mozilla.jss.crypto.X509Certificate |
getNewCertificate()
Retrieves new transport certificate.
|
org.mozilla.jss.crypto.PrivateKey |
getPrivateKey(org.mozilla.jss.crypto.X509Certificate cert)
Retrieves private key associated with certificate
|
java.lang.String |
getSigningAlgorithm()
Returns this Unit's signing algorithm in String format.
|
org.mozilla.jss.crypto.CryptoToken |
getToken()
Returns this Unit's crypto token object.
|
void |
setSigningAlgorithm(java.lang.String str)
Sets this Unit's signing algorithm.
|
org.mozilla.jss.crypto.SymmetricKey |
unwrap_encrypt_sym(byte[] encSymmKey)
Unwraps symmetric key for encrypton .
|
org.mozilla.jss.crypto.SymmetricKey |
unwrap_sym(byte[] encSymmKey)
Unwraps symmetric key .
|
org.mozilla.jss.crypto.SymmetricKey |
unwrap_sym(byte[] encSymmKey,
org.mozilla.jss.crypto.SymmetricKey.Usage usage)
Unwraps symmetric key .
|
org.mozilla.jss.crypto.PrivateKey |
unwrap_temp(byte[] wrappedKeyData,
java.security.PublicKey pubKey)
Unwraps temporary private key .
|
org.mozilla.jss.crypto.X509Certificate |
verifyCertificate(java.lang.String transportCert)
Verifies transport certificate.
|
decryptExternalPrivate, decryptExternalPrivate, decryptInternalPrivate, encryptInternalPrivate, getPublicKey, unwrap_symmetric, unwrap, unwrap, unwrap, unwrap, verify, wrap, wraporg.mozilla.jss.crypto.X509Certificate getCertificate()
org.mozilla.jss.crypto.X509Certificate getNewCertificate()
org.mozilla.jss.crypto.X509Certificate verifyCertificate(java.lang.String transportCert)
org.mozilla.jss.crypto.PrivateKey getPrivateKey(org.mozilla.jss.crypto.X509Certificate cert)
org.mozilla.jss.crypto.SymmetricKey unwrap_sym(byte[] encSymmKey,
org.mozilla.jss.crypto.SymmetricKey.Usage usage)
unwrap_sym in interface IEncryptionUnitencSymmKey - wrapped symmetric key to be unwrappedusage - Key usage for unwrapped key.org.mozilla.jss.crypto.SymmetricKey unwrap_sym(byte[] encSymmKey)
encSymmKey - wrapped symmetric key to be unwrappedorg.mozilla.jss.crypto.SymmetricKey unwrap_encrypt_sym(byte[] encSymmKey)
encSymmKey - wrapped symmetric key to be unwrappedorg.mozilla.jss.crypto.PrivateKey unwrap_temp(byte[] wrappedKeyData,
java.security.PublicKey pubKey)
throws EBaseException
wrappedKeyData - wrapped private key to be unwrappedpubKey - public keyEBaseException - failed to unwraporg.mozilla.jss.crypto.CryptoToken getToken()
java.lang.String getSigningAlgorithm()
throws EBaseException
EBaseExceptionvoid setSigningAlgorithm(java.lang.String str)
throws EBaseException
str - String of signing algorithm to set.EBaseException