Class SecurePrivateKey

All Implemented Interfaces:
Serializable, Loggeable

public class SecurePrivateKey extends SecureVariantKey implements 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:
  • Constructor Details

  • Method Details

    • 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.
    • getVariant

      public byte getVariant()
      Description copied from class: SecureVariantKey
      Gets the key variant method used to protect this key.
      Specified by:
      getVariant in class SecureVariantKey
      Returns:
      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.
    • getScheme

      public KeyScheme getScheme()
      Description copied from class: SecureKey
      Gets the key scheme used to protect this key.
      Specified by:
      getScheme in class SecureKey
      Returns:
      key scheme used to protect this key.
    • dump

      public void dump(PrintStream p, 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