com.ibm.crypto.fips.provider
Class SystemSigner
- java.lang.Object
java.security.Identity
java.security.Signer
com.ibm.crypto.fips.provider.SystemSigner
All implemented interfaces:
AlgorithmStatus, java.io.Serializable, java.security.Principal
- public class SystemSigner
- extends java.security.Signer
- implements AlgorithmStatus
Version:
1.27
Author:
Benjamin Renaud
See Also:
Constructor Summary
Constructor and Description |
---|
SystemSigner(java.lang.String name)
Construct a signer with a given name.
|
SystemSigner(java.lang.String name,java.security.IdentityScope scope)
Construct a signer with a name and a scope.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
isFipsApproved()
|
|
isTrusted()
Returns true if this signer is trusted.
|
|
toString()
|
Methods inherited from class java.security.Signer |
---|
getPrivateKey, setKeyPair |
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
SystemSigner
- public SystemSigner(java.lang.String name)
Construct a signer with a given name.
SystemSigner
- public SystemSigner(java.lang.String name,
- java.security.IdentityScope scope)
- throws java.security.KeyManagementException
Construct a signer with a name and a scope.
Parameters:
name
- the signer's name. scope
- the scope for this signer. Throws:
java.security.KeyManagementException
Method Detail
isFipsApproved
- public boolean isFipsApproved()
Description copied from interface:
AlgorithmStatus
Module identifies if the cryptographic operation (algorithm) is FIPS certified
Specified by:
isFipsApproved
in interface AlgorithmStatus
See Also:
isTrusted
- public boolean isTrusted()
Returns true if this signer is trusted.
Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false. toString
- public java.lang.String toString( )
Specified by:
toString
in interface java.security.Principal
Overrides:
toString
in class java.security.Signer
Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.