|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.SignatureSpi
java.security.Signature
org.bouncycastle.jce.provider.JDKDigestSignature
public class JDKDigestSignature
Nested Class Summary | |
---|---|
static class |
JDKDigestSignature.MD2WithRSAEncryption
|
static class |
JDKDigestSignature.MD4WithRSAEncryption
|
static class |
JDKDigestSignature.MD5WithRSAEncryption
|
static class |
JDKDigestSignature.RIPEMD128WithRSAEncryption
|
static class |
JDKDigestSignature.RIPEMD160WithRSAEncryption
|
static class |
JDKDigestSignature.RIPEMD256WithRSAEncryption
|
static class |
JDKDigestSignature.SHA1WithRSAEncryption
|
static class |
JDKDigestSignature.SHA224WithRSAEncryption
|
static class |
JDKDigestSignature.SHA256WithRSAEncryption
|
static class |
JDKDigestSignature.SHA384WithRSAEncryption
|
static class |
JDKDigestSignature.SHA512WithRSAEncryption
|
Field Summary | |
---|---|
private AlgorithmIdentifier |
algId
|
private AsymmetricBlockCipher |
cipher
|
private Digest |
digest
|
Fields inherited from class java.security.Signature |
---|
SIGN, state, UNINITIALIZED, VERIFY |
Fields inherited from class java.security.SignatureSpi |
---|
appRandom |
Fields inherited from interface org.bouncycastle.asn1.x509.X509ObjectIdentifiers |
---|
commonName, countryName, crlAccessMethod, id, id_ad, id_ad_caIssuers, id_ad_ocsp, id_ea_rsa, id_pe, id_pkix, id_SHA1, localityName, ocspAccessMethod, organization, organizationalUnitName, ripemd160, ripemd160WithRSAEncryption, stateOrProvinceName |
Constructor Summary | |
---|---|
protected |
JDKDigestSignature(java.lang.String name,
DERObjectIdentifier objId,
Digest digest,
AsymmetricBlockCipher cipher)
|
Method Summary | |
---|---|
private byte[] |
derEncode(byte[] hash)
|
protected java.lang.Object |
engineGetParameter(java.lang.String param)
Deprecated. |
protected void |
engineInitSign(java.security.PrivateKey privateKey)
|
protected void |
engineInitVerify(java.security.PublicKey publicKey)
|
protected void |
engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
|
protected void |
engineSetParameter(java.lang.String param,
java.lang.Object value)
Deprecated. replaced with |
protected byte[] |
engineSign()
|
protected void |
engineUpdate(byte b)
|
protected void |
engineUpdate(byte[] b,
int off,
int len)
|
protected boolean |
engineVerify(byte[] sigBytes)
|
private java.lang.String |
getType(java.lang.Object o)
|
Methods inherited from class java.security.Signature |
---|
clone, getAlgorithm, getInstance, getInstance, getInstance, getParameter, getParameters, getProvider, initSign, initSign, initVerify, initVerify, setParameter, setParameter, sign, sign, toString, update, update, update, update, verify, verify |
Methods inherited from class java.security.SignatureSpi |
---|
engineGetParameters, engineInitSign, engineSign, engineUpdate, engineVerify |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Digest digest
private AsymmetricBlockCipher cipher
private AlgorithmIdentifier algId
Constructor Detail |
---|
protected JDKDigestSignature(java.lang.String name, DERObjectIdentifier objId, Digest digest, AsymmetricBlockCipher cipher)
Method Detail |
---|
protected void engineInitVerify(java.security.PublicKey publicKey) throws java.security.InvalidKeyException
engineInitVerify
in class java.security.SignatureSpi
java.security.InvalidKeyException
protected void engineInitSign(java.security.PrivateKey privateKey) throws java.security.InvalidKeyException
engineInitSign
in class java.security.SignatureSpi
java.security.InvalidKeyException
private java.lang.String getType(java.lang.Object o)
protected void engineUpdate(byte b) throws java.security.SignatureException
engineUpdate
in class java.security.SignatureSpi
java.security.SignatureException
protected void engineUpdate(byte[] b, int off, int len) throws java.security.SignatureException
engineUpdate
in class java.security.SignatureSpi
java.security.SignatureException
protected byte[] engineSign() throws java.security.SignatureException
engineSign
in class java.security.SignatureSpi
java.security.SignatureException
protected boolean engineVerify(byte[] sigBytes) throws java.security.SignatureException
engineVerify
in class java.security.SignatureSpi
java.security.SignatureException
protected void engineSetParameter(java.security.spec.AlgorithmParameterSpec params)
engineSetParameter
in class java.security.SignatureSpi
protected void engineSetParameter(java.lang.String param, java.lang.Object value)
engineSetParameter
in class java.security.SignatureSpi
protected java.lang.Object engineGetParameter(java.lang.String param)
engineGetParameter
in class java.security.SignatureSpi
private byte[] derEncode(byte[] hash) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |