Class SecurePrivateKey

  • All Implemented Interfaces:
    java.io.Serializable, Loggeable

    public class SecurePrivateKey
    extends SecureVariantKey
    implements java.io.Serializable
    The SecurePrivateKey class wraps any private key, which is protected by the security module with variant methods.

    The wrapped private key should be in the secure proprietary format of the security module.

    The keyType indicates type of private key (currently only RSA keys are supported - others may be in future)

    See Also:
    Serialized Form
    • Method Detail

      • setVariant

        public void setVariant​(byte variant)
        Description copied from class: SecureVariantKey
        Sets key protection variant metchod appiled to this key by the security module.
        Overrides:
        setVariant in class SecureVariantKey
        Parameters:
        variant - key variant method used to protect this key.
      • setScheme

        public void setScheme​(KeyScheme scheme)
        Description copied from class: SecureKey
        Key scheme indicates protection metchod appiled to this key by the security module.
        Overrides:
        setScheme in class SecureKey
        Parameters:
        scheme - key scheme used to protect this key.
      • dump

        public void dump​(java.io.PrintStream p,
                         java.lang.String indent)
        Dumps SecureRSAPrivateKey basic information.
        Specified by:
        dump in interface Loggeable
        Parameters:
        p - a PrintStream usually supplied by Logger
        indent - indention string, usually suppiled by Logger