Interface IEncryptionUnit

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.mozilla.jss.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, org.mozilla.jss.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.
    • Method Detail

      • getPublicKey

        java.security.PublicKey getPublicKey()
        Retrieves the public key in this unit.
        Returns:
        public key
      • verify

        void verify​(java.security.PublicKey publicKey,
                    org.mozilla.jss.crypto.PrivateKey privateKey)
             throws EBaseException
        Verifies the given key pair.
        Parameters:
        publicKey - public key
        privateKey - 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 java.lang.Exception
        Unwraps symmetric key . This method unwraps the symmetric key.
        Parameters:
        encSymmKey - wrapped symmetric key to be unwrapped
        Returns:
        Symmetric key object
        Throws:
        java.lang.Exception
      • getOldWrappingParams

        org.mozilla.jss.netscape.security.util.WrappingParams getOldWrappingParams()