|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security.pkcs7.PKCS7
PKCS #7 helper class. This class defines static fields and provides helper class methods for the PKCS7 package.
Constructor Summary | |
PKCS7()
Create a PKCS7 object with default values. |
|
PKCS7(String provider)
Create a PKCS7 object with default values. |
Method Summary | |
static String |
getDigestAlgorithm(AlgorithmId alg)
Return the message digest AlgorithmId object for the specified message digest and signature AlgorithmId. |
static String |
getDigestAlgorithm(AlgorithmId alg,
String provider)
Return the message digest AlgorithmId object for the specified message digest and signature AlgorithmId. |
static String |
getDigestAlgorithm(String digestSignatureAlgorithm)
Return the message digest AlgorithmId object for the specified message digest and signature algorithm. |
static String |
getDigestAlgorithm(String digestSignatureAlgorithm,
String provider)
Return the message digest AlgorithmId object for the specified message digest and signature algorithm. |
static String |
getDigestSignatureAlgorithm(AlgorithmId digestAlg,
AlgorithmId signatureAlg)
Combine the message digest and signature algorithms and return a combined AlgorithmId representing the message digest and signature algorithm. |
static String |
getDigestSignatureAlgorithm(AlgorithmId digestAlg,
AlgorithmId signatureAlg,
String provider)
Combine the message digest and signature algorithms and return a combined AlgorithmId representing the message digest and signature algorithm. |
static String |
getDigestSignatureAlgorithm(String digestAlgorithm,
String signatureAlgorithm)
Combine the message digest and signature algorithms and return a combined AlgorithmId representing the message digest and signature algorithm. |
static String |
getDigestSignatureAlgorithm(String digestAlgorithm,
String signatureAlgorithm,
String provider)
|
static String |
getMACAlgorithm(AlgorithmId alg)
Return the MAC AlgorithmId object for the specified MAC AlgorithmId. |
static String |
getMACAlgorithm(String macAlgorithm)
Return the MAC AlgorithmId object for the specified MAC algorithm. |
static String |
getSignatureAlgorithm(AlgorithmId alg)
Return the signature AlgorithmId object for the specified message digest and signature AlgorithmId. |
static String |
getSignatureAlgorithm(String digestSignatureAlgorithm)
Return the signature AlgorithmId object for the specified message digest and signature algorithm. |
static boolean |
isData(ObjectIdentifier oid)
Return true if the ObjectIdentifier matches the Data ObjectIdentifer. |
static boolean |
isData(String oidString)
Return true if the string matches the Data ObjectIdentifer. |
static boolean |
isDigestedData(ObjectIdentifier oid)
Return true if the ObjectIdentifier matches the DigestedData ObjectIdentifer. |
static boolean |
isDigestedData(String oidString)
Return true if the string matches the DigestedData ObjectIdentifer. |
static boolean |
isEncryptedData(ObjectIdentifier oid)
Return true if the ObjectIdentifier matches the EncryptedData ObjectIdentifer. |
static boolean |
isEncryptedData(String oidString)
Return true if the string matches the EncryptedData ObjectIdentifer. |
static boolean |
isEnvelopedData(ObjectIdentifier oid)
Return true if the ObjectIdentifier matches the EnvelopedData ObjectIdentifer. |
static boolean |
isEnvelopedData(String oidString)
Return true if the string matches the EnvelopedData ObjectIdentifer. |
static boolean |
isNetscapeCertSequence(ObjectIdentifier oid)
Return true if the ObjectIdentifier matches the NetscapeCertSequence ObjectIdentifer. |
static boolean |
isNetscapeCertSequence(String oidString)
Return true if the string matches the NetscapeCertSequence ObjectIdentifer. |
static boolean |
isSignedAndEnvelopedData(ObjectIdentifier oid)
Return true if the ObjectIdentifier matches the SignedAndEnvelopedData ObjectIdentifer. |
static boolean |
isSignedAndEnvelopedData(String oidString)
Return true if the string matches the SignedAndEnvelopedData ObjectIdentifer. |
static boolean |
isSignedData(ObjectIdentifier oid)
Return true if the ObjectIdentifier matches the SignedData ObjectIdentifer. |
static boolean |
isSignedData(String oidString)
Return true if the string matches the SignedData ObjectIdentifer. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public PKCS7()
public PKCS7(String provider)
provider
- the name of the java security provider to useMethod Detail |
public static boolean isData(String oidString)
oidString
- Object Identifier string.public static boolean isSignedData(String oidString)
oidString
- Object Identifier string.public static boolean isEnvelopedData(String oidString)
oidString
- Object Identifier string.public static boolean isSignedAndEnvelopedData(String oidString)
oidString
- Object Identifier string.public static boolean isDigestedData(String oidString)
oidString
- Object Identifier string.public static boolean isEncryptedData(String oidString)
oidString
- Object Identifier string.public static boolean isNetscapeCertSequence(String oidString)
oidString
- Object Identifier string.public static boolean isData(ObjectIdentifier oid)
oid
- ObjectIdentifierpublic static boolean isSignedData(ObjectIdentifier oid)
oid
- ObjectIdentifierpublic static boolean isEnvelopedData(ObjectIdentifier oid)
oid
- ObjectIdentifierpublic static boolean isSignedAndEnvelopedData(ObjectIdentifier oid)
oid
- ObjectIdentifierpublic static boolean isDigestedData(ObjectIdentifier oid)
oid
- ObjectIdentifierpublic static boolean isEncryptedData(ObjectIdentifier oid)
oid
- ObjectIdentifierpublic static boolean isNetscapeCertSequence(ObjectIdentifier oid)
oid
- ObjectIdentifierpublic static String getDigestAlgorithm(String digestSignatureAlgorithm) throws NoSuchAlgorithmException
digestsignatureAlgorithm
- message digest and signature algorithm:
"MD2", "MD5", "SHA1", "MD2/RSA", "MD5/RSA", "SHA1/DSA", or "SHA1/RSA"public static String getDigestAlgorithm(String digestSignatureAlgorithm, String provider) throws NoSuchAlgorithmException
digestsignatureAlgorithm
- message digest and signature algorithm:
"MD2", "MD5", "SHA1", "MD2/RSA", "MD5/RSA", "SHA1/DSA", or "SHA1/RSA"provider
- the provider to be usedpublic static String getDigestAlgorithm(AlgorithmId alg) throws NoSuchAlgorithmException
alg
- message digest and signature AlgorithmIdpublic static String getDigestAlgorithm(AlgorithmId alg, String provider) throws NoSuchAlgorithmException
alg
- message digest and signature AlgorithmIdprovider
- the provider to be usedpublic static String getSignatureAlgorithm(String digestSignatureAlgorithm) throws NoSuchAlgorithmException
digestsignatureAlgorithm
- message digest and signature algorithm:
"RSA", "DSA", "MD2/RSA", "MD5/RSA", "SHA1/DSA", or "SHA1/RSA"public static String getSignatureAlgorithm(AlgorithmId alg) throws NoSuchAlgorithmException
alg
- message digest and signature AlgorithmIdpublic static String getMACAlgorithm(String macAlgorithm) throws NoSuchAlgorithmException
macAlgorithm
- MAC algorithm: "HmacSHA"public static String getMACAlgorithm(AlgorithmId alg) throws NoSuchAlgorithmException
alg
- MAC algorithmpublic static String getDigestSignatureAlgorithm(String digestAlgorithm, String signatureAlgorithm) throws NoSuchAlgorithmException
Digest Algorithm | Signature Algorithm | Digest/Signature Algorithm |
---|---|---|
null | md2/rsa | md2/rsa |
md2 | rsa | md2/rsa |
md2 | md2/rsa | md2/rsa |
md2/rsa | md2/rsa | md2/rsa |
null | md5/rsa | md5/rsa |
md5 | rsa | md5/rsa |
md5 | md5/rsa | md5/rsa |
md5/rsa | md5/rsa | md5/rsa |
null | sha1/dsa | sha1/dsa |
sha1 | dsa | sha1/dsa |
sha1 | sha1/dsa | sha1/dsa |
sha1/dsa | sha1/dsa | sha1/dsa |
null | sha1/rsa | sha1/rsa |
sha1 | rsa | sha1/rsa |
sha1 | sha1/rsa | sha1/rsa |
sha1/rsa | sha1/rsa | sha1/rsa |
digestAlgorithm
- message digest algorithmsignatureAlgorithm
- signature algorithmpublic static String getDigestSignatureAlgorithm(String digestAlgorithm, String signatureAlgorithm, String provider) throws NoSuchAlgorithmException
digestAlgorithm
- message digest algorithmsignatureAlgorithm
- signature algorithmprovider
- the provider to be usedpublic static String getDigestSignatureAlgorithm(AlgorithmId digestAlg, AlgorithmId signatureAlg) throws NoSuchAlgorithmException
digestAlg
- message digest AlgorithmIdsignatureAlg
- signature AlgorithmIdpublic static String getDigestSignatureAlgorithm(AlgorithmId digestAlg, AlgorithmId signatureAlg, String provider) throws NoSuchAlgorithmException
digestAlg
- message digest AlgorithmIdsignatureAlg
- signature AlgorithmIdprovider
- signature AlgorithmId
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |