java.security
Class Signer

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.

public abstract class Signer
extends Identity

Untamed: 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.

Version:
1.38 01/12/03
Author:
Benjamin Renaud
See Also:
Identity, Serialized Form

Field Summary
private  PrivateKey privateKey
          Deprecated. The signer's private key.
 
Fields inherited from class java.security.Identity
certificates, info, scope
 
Constructor Summary
protected Signer()
          Deprecated. Creates a signer.
  Signer(String name)
          Deprecated. Enabled: Creates a signer with the specified identity name.
  Signer(String name, IdentityScope scope)
          Deprecated. Enabled: Creates a signer with the specified identity name and scope.
 
Method Summary
private static void check(String directive)
          Deprecated.  
 PrivateKey getPrivateKey()
          Deprecated. Enabled: Returns this signer's private key.
(package private)  String printKeys()
          Deprecated.  
 void setKeyPair(KeyPair pair)
          Deprecated. Enabled: Sets the key pair (public key and private key) for this signer.
 String toString()
          Deprecated. Suppressed: Returns a string of information about the signer.
 
Methods inherited from class java.security.Identity
addCertificate, certificates, equals, fullName, getInfo, getName, getPublicKey, getScope, hashCode, identityEquals, printCertificates, removeCertificate, setInfo, setPublicKey, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

privateKey

private PrivateKey privateKey
Deprecated. 
The signer's private key.

Constructor Detail

Signer

protected Signer()
Deprecated. 
Creates a signer. This constructor should only be used for serialization.


Signer

public Signer(String name)
Deprecated. 
Enabled: Creates a signer with the specified identity name.

Parameters:
name - the identity name.

Signer

public Signer(String name,
              IdentityScope scope)
       throws KeyManagementException
Deprecated. 
Enabled: Creates a signer with the specified identity name and scope.

Parameters:
name - the identity name.
scope - the scope of the identity.
Method Detail

getPrivateKey

public PrivateKey getPrivateKey()
Deprecated. 
Enabled: 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.

Returns:
this signer's private key, or null if the private key has not yet been set.
See Also:
SecurityManager.checkSecurityAccess(java.lang.String)

setKeyPair

public final void setKeyPair(KeyPair pair)
                      throws InvalidParameterException,
                             KeyException
Deprecated. 
Enabled: 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.

Parameters:
pair - an initialized key pair.
InvalidParameterException
KeyException
See Also:
SecurityManager.checkSecurityAccess(java.lang.String)

printKeys

String printKeys()
Deprecated. 
Overrides:
printKeys in class Identity

toString

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

Specified by:
toString in interface Principal
Overrides:
toString in class Identity
Returns:
a string of information about the signer.
See Also:
SecurityManager.checkSecurityAccess(java.lang.String)

check

private static void check(String directive)
Deprecated. 


comments?