Package java.security

Class Signer

All Implemented Interfaces:
Serializable, Principal

@Deprecated
public abstract class Signer
extends Identity
Deprecated.
Use the java.security.cert package and Principal instead.
Signer represents an identity (individual or corporation) that owns a private key and the corresponding public key.
See Also:
Serialized Form
  • Constructor Details

    • Signer

      protected Signer()
      Deprecated.
      Constructs a new instance of Signer.
    • Signer

      public Signer​(String name)
      Deprecated.
      Constructs a new instance of Signer with the given name.
      Parameters:
      name - the name of the signer.
    • Signer

      public Signer​(String name, IdentityScope scope) throws KeyManagementException
      Deprecated.
      Constructs a new instance of Signer with the given name in the given scope.
      Parameters:
      name - the name of the signer.
      scope - the scope of the signer.
      Throws:
      KeyManagementException - if a signer with the specified name already exists in the provided scope.
  • Method Details

    • getPrivateKey

      public PrivateKey getPrivateKey()
      Deprecated.
      Returns the private key of this Signer.
    • setKeyPair

      public final void setKeyPair​(KeyPair pair) throws InvalidParameterException, KeyException
      Deprecated.
      Associates the specified key pair with this Signer.
      Parameters:
      pair - the key pair to associate with this Signer.
      Throws:
      InvalidParameterException - if the key pair is invalid.
      KeyException - if any other key related problem occurs.
    • toString

      public String toString()
      Deprecated.
      Returns a string containing a concise, human-readable description of this Signer including its name and its scope if present.
      Specified by:
      toString in interface Principal
      Overrides:
      toString in class Identity
      Returns:
      a printable representation for this Signer.