public interface IEncryptionUnit extends IToken
Modifier and Type | Method and Description |
---|---|
netscape.security.util.WrappingParams |
getOldWrappingParams() |
java.security.PublicKey |
getPublicKey()
Retrieves the public key in this unit.
|
org.mozilla.jss.crypto.SymmetricKey |
unwrap_session_key(org.mozilla.jss.crypto.CryptoToken token,
byte[] encSymmKey,
org.mozilla.jss.crypto.SymmetricKey.Usage usage,
netscape.security.util.WrappingParams params)
Unwraps symmetric key .
|
void |
verify(java.security.PublicKey publicKey,
org.mozilla.jss.crypto.PrivateKey privateKey)
Verifies the given key pair.
|
java.security.PublicKey getPublicKey()
void verify(java.security.PublicKey publicKey, org.mozilla.jss.crypto.PrivateKey privateKey) throws EBaseException
publicKey
- public keyprivateKey
- private keyEBaseException
org.mozilla.jss.crypto.SymmetricKey unwrap_session_key(org.mozilla.jss.crypto.CryptoToken token, byte[] encSymmKey, org.mozilla.jss.crypto.SymmetricKey.Usage usage, netscape.security.util.WrappingParams params) throws java.lang.Exception
encSymmKey
- wrapped symmetric key to be unwrappedjava.lang.Exception
netscape.security.util.WrappingParams getOldWrappingParams()