Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security

Class Signer

java.lang.Object
|
+--java.security.Identity
   |
   +--java.security.Signer


public abstract class Signer

extends Identity

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

Since:Author:

Constructor Summary

Signer()

Constructs a new Signer.
Signer(java.lang.String name)

Constructs a new Signer with the specified name.
Signer(java.lang.String name, java.security.IdentityScope scope)

Constructs a new Signer with the specifid name and IdentityScope.

Method Summary

java.security.PrivateKeygetPrivateKey()

Returns the private key for this signer.
voidsetKeyPair(java.security.KeyPair pair)

Specifies the KeyPair associated with this Signer.
java.lang.StringtoString()

Returns a string representing this Signer.

Constructor Details

Signer

protected Signer()

Constructs a new Signer.


Signer

public Signer(java.lang.String name)

Constructs a new Signer with the specified name.

Parameters:


Signer

public Signer(java.lang.String name, java.security.IdentityScope scope)

Constructs a new Signer with the specifid name and IdentityScope.

Parameters:

Throws:


Method Details

getPrivateKey

public PrivateKey getPrivateKey()

Returns the private key for this signer. This class checks the security manager with the call checkSecurityAccess with "getSignerPrivateKey".

Throws:


setKeyPair

public final void setKeyPair(java.security.KeyPair pair)

Specifies the KeyPair associated with this Signer. This class checks the security manager with the call checkSecurityAccess with "setSignerKeyPair".

Parameters:

Throws:


toString

public String toString()

Returns a string representing this Signer.