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.
Signer represents 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
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 Details
-
Signer
protected Signer()Deprecated.Constructs a new instance ofSigner. -
Signer
Deprecated.Constructs a new instance ofSignerwith the given name.- Parameters:
name- the name of the signer.
-
Signer
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 Details
-
getPrivateKey
Deprecated.Returns the private key of thisSigner. -
setKeyPair
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
Deprecated.Returns a string containing a concise, human-readable description of thisSignerincluding its name and its scope if present.
-
java.security.certpackage andPrincipalinstead.