Save This Page
Home » openjdk-7 » java » security » [javadoc | source]
java.security
abstract public class: Signer [javadoc | source]
java.lang.Object
   java.security.Identity
      java.security.Signer

All Implemented Interfaces:
    Principal, Serializable

Deprecated! This - class is no longer used. Its functionality has been replaced by java.security.KeyStore, the java.security.cert package, and java.security.Principal.

This class is used to represent an Identity that can also digitally sign data.

The management of a signer's private keys is an important and sensitive issue that should be handled by subclasses as appropriate to their intended use.

Fields inherited from java.security.Identity:
info,  scope,  certificates
Constructor:
 protected Signer() 
 public Signer(String name) 
    Creates a signer with the specified identity name.
    Parameters:
    name - the identity name.
 public Signer(String name,
    IdentityScope scope) throws KeyManagementException 
    Creates a signer with the specified identity name and scope.
    Parameters:
    name - the identity name.
    scope - the scope of the identity.
    Throws:
    KeyManagementException - if there is already an identity with the same name in the scope.
    exception: KeyManagementException - if there is already an identity with the same name in the scope.
Method from java.security.Signer Summary:
getPrivateKey,   printKeys,   setKeyPair,   toString
Methods from java.security.Identity:
addCertificate,   certificates,   equals,   fullName,   getInfo,   getName,   getPublicKey,   getScope,   hashCode,   identityEquals,   printCertificates,   printKeys,   removeCertificate,   setInfo,   setPublicKey,   toString,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.security.Signer Detail:
 public PrivateKey getPrivateKey() 
      Deprecated!
    Returns this signer's private key.

    First, if there is a security manager, its checkSecurityAccess method is called with "getSignerPrivateKey" as its argument to see if it's ok to return the private key.

 String printKeys() 
      Deprecated!
 public final  void setKeyPair(KeyPair pair) throws InvalidParameterException, KeyException 
      Deprecated!
    Sets the key pair (public key and private key) for this signer.

    First, if there is a security manager, its checkSecurityAccess method is called with "setSignerKeyPair" as its argument to see if it's ok to set the key pair.

 public String toString() 
      Deprecated!
    Returns a string of information about the signer.