java.security
Class Signer

java.lang.Object
  extended by java.security.Identity
      extended by java.security.Signer
All Implemented Interfaces:
Serializable, Principal

Deprecated. Replaced by java.security.KeyStore, the java.security.cert package, and java.security.Principal.

public abstract class Signer
extends Identity

Signer is a subclass of Identity. It is used to store a digital signature key with an Identity.

See Also:
Serialized Form

Constructor Summary
protected Signer()
          Deprecated. Trivial constructor for serialization purposes.
  Signer(String name)
          Deprecated. Constructs a new instance of Signer with the specified identity name.
  Signer(String name, IdentityScope scope)
          Deprecated. Constructs a new instance of Signer with the specified identity name and IdentityScope.
 
Method Summary
 PrivateKey getPrivateKey()
          Deprecated. Returns the private key of this Signer.
 void setKeyPair(KeyPair pair)
          Deprecated. Specifies the KeyPair associated with this Signer.
 String toString()
          Deprecated. Returns a string representation of this Identity.
 
Methods inherited from class java.security.Identity
addCertificate, certificates, equals, getInfo, getName, getPublicKey, getScope, hashCode, identityEquals, removeCertificate, setInfo, setPublicKey, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Signer

protected Signer()
Deprecated. 
Trivial constructor for serialization purposes.


Signer

public Signer(String name)
Deprecated. 
Constructs a new instance of Signer with the specified identity name.

Parameters:
name - the name of the identity to use.

Signer

public Signer(String name,
              IdentityScope scope)
       throws KeyManagementException
Deprecated. 
Constructs a new instance of Signer with the specified identity name and IdentityScope.

Parameters:
name - the name of the the identity to use.
scope - the IdentityScope to use.
Throws:
KeyManagementException - if a duplicate identity name exists within scope.
Method Detail

getPrivateKey

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

Throws:
SecurityException - if a SecurityManager is installed which disallows this operation.

setKeyPair

public final void setKeyPair(KeyPair pair)
                      throws InvalidParameterException,
                             KeyException
Deprecated. 
Specifies the KeyPair associated with this Signer.

Parameters:
pair - the KeyPair to use.
Throws:
InvalidParameterException - if the key-pair is invalid.
KeyException - if any another key-related error occurs.
SecurityException - if a SecurityManager is installed which disallows this operation.

toString

public String toString()
Deprecated. 
Description copied from class: Identity
Returns a string representation of this Identity.

Specified by:
toString in interface Principal
Overrides:
toString in class Identity
Returns:
a string representation of this Identity.
See Also:
Object.getClass(), Object.hashCode(), Class.getName(), Integer.toHexString(int)