|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.SignatureSpi | +--java.security.Signature | +--com.ibm.crypto.fips.provider.SHA1withRSA
This class implements the SHA1withRSA
Fields inherited from class java.security.Signature |
---|
SIGN, state, UNINITIALIZED, VERIFY |
Fields inherited from class java.security.SignatureSpi |
---|
appRandom |
Constructor Summary | |
---|---|
SHA1withRSA()
Construct a blank RSA object. |
Method Summary | |
---|---|
protected java.lang.Object |
engineGetParameter(java.lang.String key)
Have to implement Signature's abstract method engineGetParameter to be a concrete class. |
protected void |
engineInitSign(java.security.PrivateKey privateKey)
Initialize the RSA object with a RSA private key. |
protected void |
engineInitVerify(java.security.PublicKey publicKey)
Initialize the RSA object with a RSA public key. |
protected void |
engineSetParameter(java.lang.String key,
java.lang.Object param)
Have to implement Signature's abstract method engineSetParameter to be a concrete class. |
protected byte[] |
engineSign()
Get message digest for all the data thus far updated, then sign the message digest. |
protected void |
engineUpdate(byte b)
Update a byte to be signed or verified. |
protected void |
engineUpdate(byte[] data,
int off,
int len)
Update an array of bytes to be signed or verified. |
protected boolean |
engineVerify(byte[] signature)
Verify the signature (compare the result with the message digest). |
protected java.lang.Object |
internalGetParameter(java.lang.String key)
Have to implement Signature's abstract method engineGetParameter to be a concrete class. |
protected void |
internalInitSign(java.security.PrivateKey privateKey)
Initialize the RSA object with a RSA private key. |
protected void |
internalInitVerify(java.security.PublicKey publicKey)
Initialize the RSA object with a RSA public key. |
protected void |
internalSetParameter(java.lang.String key,
java.lang.Object param)
Have to implement Signature's abstract method engineSetParameter to be a concrete class. |
protected byte[] |
internalSign()
Get message digest for all the data thus far updated, then sign the message digest. |
protected void |
internalUpdate(byte b)
Update a byte to be signed or verified. |
protected void |
internalUpdate(byte[] data,
int off,
int len)
Update an array of bytes to be signed or verified. |
protected boolean |
internalVerify(byte[] signature)
Verify the signature (compare the result with the message digest). |
boolean |
isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified |
Methods inherited from class java.security.Signature |
---|
clone, getAlgorithm, getInstance, getInstance, getParameter, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, verify |
Methods inherited from class java.security.SignatureSpi |
---|
engineInitSign, engineSetParameter, engineSign |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SHA1withRSA() throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException
Method Detail |
public boolean isFipsApproved()
AlgorithmStatus
isFipsApproved
in interface AlgorithmStatus
AlgorithmStatus.isFipsApproved()
protected void engineSetParameter(java.lang.String key, java.lang.Object param)
engineSetParameter
in class java.security.SignatureSpi
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected void internalSetParameter(java.lang.String key, java.lang.Object param)
protected java.lang.Object engineGetParameter(java.lang.String key)
engineGetParameter
in class java.security.SignatureSpi
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected java.lang.Object internalGetParameter(java.lang.String key)
protected void engineInitSign(java.security.PrivateKey privateKey) throws java.security.InvalidKeyException
engineInitSign
in class java.security.SignatureSpi
privateKey
- the RSA private keyjava.security.InvalidKeyException
- if the key is not a valid RSA private
key.FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected void internalInitSign(java.security.PrivateKey privateKey) throws java.security.InvalidKeyException
privateKey
- the RSA private keyjava.security.InvalidKeyException
- if the key is not a valid RSA private
key.protected void engineInitVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyException
engineInitVerify
in class java.security.SignatureSpi
publicKey
- the RSA public keyjava.security.InvalidKeyException
- if the key is not a valid RSA public
key.FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected void internalInitVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyException
publicKey
- the RSA public keyjava.security.InvalidKeyException
- if the key is not a valid RSA public
key.protected void engineUpdate(byte b)
engineUpdate
in class java.security.SignatureSpi
b
- the byte to updated.FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected void internalUpdate(byte b)
b
- the byte to updated.protected void engineUpdate(byte[] data, int off, int len)
engineUpdate
in class java.security.SignatureSpi
data
- the bytes to be updated.FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected void internalUpdate(byte[] data, int off, int len)
data
- the bytes to be updated.protected byte[] engineSign() throws java.security.SignatureException
engineSign
in class java.security.SignatureSpi
java.security.SignatureException
- if the signature object was not
properly initialized, or if another exception occurs.FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected byte[] internalSign() throws java.security.SignatureException
java.security.SignatureException
- if the signature object was not
properly initialized, or if another exception occurs.protected boolean engineVerify(byte[] signature) throws java.security.SignatureException
engineVerify
in class java.security.SignatureSpi
java.security.SignatureException
- if the signature object was not
properly initialized, or if another exception occurs.FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.protected boolean internalVerify(byte[] signature) throws java.security.SignatureException
java.security.SignatureException
- if the signature object was not
properly initialized, or if another exception occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |