com.ibm.crypto.fips.provider

Class SystemSigner

  1. java.lang.Object
  2. extended byjava.security.Identity
  3. extended byjava.security.Signer
  4. extended bycom.ibm.crypto.fips.provider.SystemSigner
All implemented interfaces:
AlgorithmStatus, java.io.Serializable, java.security.Principal

  1. public class SystemSigner
  2. extends java.security.Signer
  3. implements AlgorithmStatus
SunSecurity signer. Like SystemIdentity, it has a trust bit, which can be set by SunSecurity classes, and a set of accessors for other classes in sun.security.*.
Version:
1.27
Author:
Benjamin Renaud
See Also:
Serialized Form

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
  1. boolean
isFipsApproved()
  1. boolean
isTrusted()
Returns true if this signer is trusted.
  1. java.lang.String
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

  1. public SystemSigner(java.lang.String name)
Construct a signer with a given name.

SystemSigner

  1. public SystemSigner(java.lang.String name,
  2. java.security.IdentityScope scope)
  3. 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

  1. public boolean isFipsApproved()
Description copied from interface: AlgorithmStatus
Module identifies if the cryptographic operation (algorithm) is FIPS certified
Specified by:
See Also:

isTrusted

  1. public boolean isTrusted()
Returns true if this signer is trusted.
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.

toString

  1. 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.