Package com.netscape.certsrv.security
Interface IEncryptionUnit
- All Superinterfaces:
IToken
- All Known Subinterfaces:
IStorageKeyUnit
,ITransportKeyUnit
An interface represents a encryption unit.
- Version:
- $Revision$, $Date$
-
Method Summary
Modifier and TypeMethodDescriptionorg.mozilla.jss.netscape.security.util.WrappingParams
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, org.mozilla.jss.netscape.security.util.WrappingParams params) Unwraps symmetric key .void
Verifies the given key pair.
-
Method Details
-
getPublicKey
PublicKey getPublicKey()Retrieves the public key in this unit.- Returns:
- public key
-
verify
void verify(PublicKey publicKey, org.mozilla.jss.crypto.PrivateKey privateKey) throws EBaseException Verifies the given key pair.- Parameters:
publicKey
- public keyprivateKey
- private key- Throws:
EBaseException
-
unwrap_session_key
org.mozilla.jss.crypto.SymmetricKey unwrap_session_key(org.mozilla.jss.crypto.CryptoToken token, byte[] encSymmKey, org.mozilla.jss.crypto.SymmetricKey.Usage usage, org.mozilla.jss.netscape.security.util.WrappingParams params) throws Exception Unwraps symmetric key . This method unwraps the symmetric key.- Parameters:
encSymmKey
- wrapped symmetric key to be unwrapped- Returns:
- Symmetric key object
- Throws:
Exception
-
getOldWrappingParams
org.mozilla.jss.netscape.security.util.WrappingParams getOldWrappingParams()
-