|
|||||||||
| 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.SHA1withDSA
| Fields inherited from class java.security.Signature |
|---|
SIGN, state, UNINITIALIZED, VERIFY |
| Fields inherited from class java.security.SignatureSpi |
|---|
appRandom |
| Constructor Summary | |
|---|---|
SHA1withDSA()
Constructs a new instance of this class. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
engineGetParameter(java.lang.String param)
Deprecated. |
protected void |
engineInitSign(java.security.PrivateKey privateKey)
Initialize the receiver with the specified private key, to be used for signing purposes. |
protected void |
engineInitVerify(java.security.PublicKey publicKey)
Initialize the receiver with the specified public key, to be used for verification purposes. |
protected void |
engineSetParameter(java.lang.String param,
java.lang.Object value)
Deprecated. Replaced with engineSetParameter(AlgorithmParameterSpec) |
protected byte[] |
engineSign()
Answers the signature bytes of the data updated so far. |
protected void |
engineUpdate(byte b)
Update the bytes signed so far with the extra byte provided. |
protected void |
engineUpdate(byte[] buffer,
int offset,
int length)
Update the bytes signed so far with the extra bytes provided. |
protected boolean |
engineVerify(byte[] sigBytes)
Verifies the passed signature. |
protected java.lang.Object |
internalGetParameter(java.lang.String param)
Deprecated. |
protected void |
internalInitSign(java.security.PrivateKey privateKey)
Initialize the receiver with the specified private key, to be used for signing purposes. |
protected void |
internalInitVerify(java.security.PublicKey publicKey)
Initialize the receiver with the specified public key, to be used for verification purposes. |
protected void |
internalSetParameter(java.lang.String param,
java.lang.Object value)
Deprecated. Replaced with engineSetParameter(AlgorithmParameterSpec) |
protected byte[] |
internalSign()
Answers the signature bytes of the data updated so far. |
protected java.lang.String |
internalToString()
Answers a string containing a concise, human-readable description of the receiver. |
protected void |
internalUpdate(byte b)
Update the bytes signed so far with the extra byte provided. |
protected void |
internalUpdate(byte[] buffer,
int offset,
int length)
Update the bytes signed so far with the extra bytes provided. |
protected boolean |
internalVerify(byte[] sigBytes)
Verifies the passed signature. |
boolean |
isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified |
java.lang.String |
toString()
Answers a string containing a concise, human-readable description of the receiver. |
| Methods inherited from class java.security.Signature |
|---|
clone, getAlgorithm, getInstance, getInstance, getParameter, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, 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 SHA1withDSA()
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException
| Method Detail |
public boolean isFipsApproved()
AlgorithmStatusisFipsApproved in interface AlgorithmStatusAlgorithmStatus.isFipsApproved()
protected java.lang.Object engineGetParameter(java.lang.String param)
throws java.security.InvalidParameterException
engineGetParameter in class java.security.SignatureSpiparam - String the parameter name.java.security.InvalidParameterException - if the specified parameter name is invalidFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected java.lang.Object internalGetParameter(java.lang.String param)
throws java.security.InvalidParameterException
param - String the parameter name.java.security.InvalidParameterException - if the specified parameter name is invalid
protected void engineInitSign(java.security.PrivateKey privateKey)
throws java.security.InvalidKeyException
engineInitSign in class java.security.SignatureSpiprivateKey - PrivateKey the key to be used when signingjava.security.InvalidKeyException - if the specified key is not valid (improperly encoded, parameters missing, etc)FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalInitSign(java.security.PrivateKey privateKey)
throws java.security.InvalidKeyException
privateKey - PrivateKey the key to be used when signingjava.security.InvalidKeyException - if the specified key is not valid (improperly encoded, parameters missing, etc)
protected void engineInitVerify(java.security.PublicKey publicKey)
throws java.security.InvalidKeyException
engineInitVerify in class java.security.SignatureSpipublicKey - PublicKey the key to be used when verifyingjava.security.InvalidKeyException - if the specified key is not valid (improperly encoded, parameters missing, etc)FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalInitVerify(java.security.PublicKey publicKey)
throws java.security.InvalidKeyException
publicKey - PublicKey the key to be used when verifyingjava.security.InvalidKeyException - if the specified key is not valid (improperly encoded, parameters missing, etc)
protected void engineSetParameter(java.lang.String param,
java.lang.Object value)
throws java.security.InvalidParameterException
engineSetParameter in class java.security.SignatureSpiparam - String the parameter namevalue - Object the parameter valuejava.security.InvalidParameterException - if the specified parameter name is not valid for the receiver or if it has
been set alreadyFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalSetParameter(java.lang.String param,
java.lang.Object value)
throws java.security.InvalidParameterException
param - String the parameter namevalue - Object the parameter valuejava.security.InvalidParameterException - if the specified parameter name is not valid for the receiver or if it has
been set already
protected byte[] engineSign()
throws java.security.SignatureException
engineSign in class java.security.SignatureSpijava.security.SignatureException - if the engine is not initialized properlyFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected byte[] internalSign()
throws java.security.SignatureException
java.security.SignatureException - if the engine is not initialized properly
protected void engineUpdate(byte b)
throws java.security.SignatureException
engineUpdate in class java.security.SignatureSpib - byte the extra byte to be signed.java.security.SignatureException - if the receiver is not initialized properlyFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalUpdate(byte b)
throws java.security.SignatureException
b - byte the extra byte to be signed.java.security.SignatureException - if the receiver is not initialized properly
protected void engineUpdate(byte[] buffer,
int offset,
int length)
throws java.security.SignatureException
engineUpdate in class java.security.SignatureSpibuffer - byte[] the extra bytes to be signed.offset - int offset in the buffer where to start getting bytes for signinglength - int how many bytes to get for signingjava.security.SignatureException - if the receiver is not initialized properlyFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalUpdate(byte[] buffer,
int offset,
int length)
throws java.security.SignatureException
buffer - byte[] the extra bytes to be signed.offset - int offset in the buffer where to start getting bytes for signinglength - int how many bytes to get for signingjava.security.SignatureException - if the receiver is not initialized properly
protected boolean engineVerify(byte[] sigBytes)
throws java.security.SignatureException
engineVerify in class java.security.SignatureSpisigBytes - byte[] the signature bytes to verifyjava.security.SignatureException - if the receiver is not initialized
properly or if the key is not encoded properly.FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected boolean internalVerify(byte[] sigBytes)
throws java.security.SignatureException
sigBytes - byte[] the signature bytes to verifyjava.security.SignatureException - if the receiver is not initialized
properly or if the key is not encoded properly.public java.lang.String toString()
toString in class java.security.SignatureFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected java.lang.String internalToString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||