Package java.security
Class Signer
- java.lang.Object
-
- java.security.Identity
-
- java.security.Signer
-
- All Implemented Interfaces:
Serializable,Principal
@Deprecated public abstract class Signer extends Identity
Deprecated.Use thejava.security.certpackage andPrincipalinstead.Signerrepresents an identity (individual or corporation) that owns a private key and the corresponding public key.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSigner()Deprecated.Constructs a new instance ofSigner.Signer(String name)Deprecated.Constructs a new instance ofSignerwith the given name.Signer(String name, IdentityScope scope)Deprecated.Constructs a new instance ofSignerwith the given name in the given scope.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PrivateKeygetPrivateKey()Deprecated.Returns the private key of thisSigner.voidsetKeyPair(KeyPair pair)Deprecated.Associates the specified key pair with thisSigner.StringtoString()Deprecated.Returns a string containing a concise, human-readable description of thisSignerincluding its name and its scope if present.-
Methods inherited from class java.security.Identity
addCertificate, certificates, equals, getInfo, getName, getPublicKey, getScope, hashCode, identityEquals, removeCertificate, setInfo, setPublicKey, toString
-
-
-
-
Constructor Detail
-
Signer
protected Signer()
Deprecated.Constructs a new instance ofSigner.
-
Signer
public Signer(String name)
Deprecated.Constructs a new instance ofSignerwith the given name.- Parameters:
name- the name of the signer.
-
Signer
public Signer(String name, IdentityScope scope) throws KeyManagementException
Deprecated.Constructs a new instance ofSignerwith 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 Detail
-
getPrivateKey
public PrivateKey getPrivateKey()
Deprecated.Returns the private key of thisSigner.
-
setKeyPair
public final void setKeyPair(KeyPair pair) throws InvalidParameterException, KeyException
Deprecated.Associates the specified key pair with thisSigner.- Parameters:
pair- the key pair to associate with thisSigner.- 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 thisSignerincluding its name and its scope if present.
-
-