|
Oracle Security Developer Tools PKI SDK CMP Java API Reference 11g (11.1.1) E10666-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cmp.CMPUtils
public class CMPUtils
Utility functions for users of this package.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_DSA_Signature_Algo |
static java.lang.String |
DEFAULT_RandomGenerator_ALGO |
static java.lang.String |
DEFAULT_RSA_Signature_Algo |
static java.lang.String |
HASH_ALG_MD2 |
static java.lang.String |
HASH_ALG_MD5 |
static java.lang.String |
HASH_ALG_SHA_1 |
Constructor Summary | |
---|---|
CMPUtils() |
Method Summary | |
---|---|
static java.lang.String |
addPadding(java.lang.String algoName) |
static oracle.security.crypto.cert.X509 |
convertX509(java.security.cert.X509Certificate cert) Converts an X509Certificate object to an X509 object |
static oracle.security.crypto.core.AlgorithmIdentifier |
getAlgoID(java.lang.String name) Algoname to algoId mapping |
static java.lang.String |
getAlgoName(oracle.security.crypto.core.AlgorithmIdentifier oid) Algoid to algoname mapping |
static java.lang.String |
getAlgoName(oracle.security.crypto.core.AlgorithmIdentifier oid, boolean removeMode) Algoid to algoname mapping |
static oracle.security.crypto.cert.X509ExtensionSet |
getExtensionSet(java.security.cert.X509Certificate cert) Returns a list of Extensions associated with an X509Certificate |
static java.security.cert.X509Certificate |
toJCECertificate(oracle.security.crypto.cert.X509 cert) |
static java.security.PublicKey |
toJCEPublicKey(oracle.security.crypto.core.PublicKey orakey) |
static java.security.interfaces.RSAPrivateKey |
toJCERSAPrivateKey(oracle.security.crypto.core.RSAPrivateKey oraKey) |
static oracle.security.crypto.core.KeyPair |
toPhaosKeyPair(java.security.KeyPair kp) |
static oracle.security.crypto.core.PrivateKey |
toPhaosPrivateKey(java.security.PrivateKey privateKey) |
static oracle.security.crypto.core.PublicKey |
toPhaosPublicKey(java.security.PublicKey pubkey) |
static oracle.security.crypto.core.RSAPrivateKey |
toPhaosRSAPrivateKey(java.security.interfaces.RSAPrivateKey privKey) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_RandomGenerator_ALGO
public static final java.lang.String DEFAULT_RSA_Signature_Algo
public static final java.lang.String DEFAULT_DSA_Signature_Algo
public static final java.lang.String HASH_ALG_MD5
public static final java.lang.String HASH_ALG_MD2
public static final java.lang.String HASH_ALG_SHA_1
Constructor Detail |
---|
public CMPUtils()
Method Detail |
---|
public static oracle.security.crypto.core.AlgorithmIdentifier getAlgoID(java.lang.String name) throws java.security.NoSuchAlgorithmException
name
- Name of the algorithmjava.security.NoSuchAlgorithmException
public static java.lang.String getAlgoName(oracle.security.crypto.core.AlgorithmIdentifier oid) throws java.security.NoSuchAlgorithmException
oid
- Algorithmidentifier for which algorithm name is requiredjava.security.NoSuchAlgorithmException
public static java.lang.String getAlgoName(oracle.security.crypto.core.AlgorithmIdentifier oid, boolean removeMode) throws java.security.NoSuchAlgorithmException
oid
- Algorithmidentifier for which algorithm name is requiredremoveMode
- boolean - if true the mode details are removed from the algo namejava.security.NoSuchAlgorithmException
public static oracle.security.crypto.cert.X509 convertX509(java.security.cert.X509Certificate cert) throws java.security.cert.CertificateEncodingException
cert
- X509Certificate objectjava.security.cert.CertificateEncodingException
public static java.security.cert.X509Certificate toJCECertificate(oracle.security.crypto.cert.X509 cert) throws java.security.cert.CertificateException
java.security.cert.CertificateException
public static oracle.security.crypto.cert.X509ExtensionSet getExtensionSet(java.security.cert.X509Certificate cert) throws java.io.IOException
cert
- java.security.X509Certificatejava.io.IOException
public static oracle.security.crypto.core.PublicKey toPhaosPublicKey(java.security.PublicKey pubkey) throws java.security.InvalidKeyException
java.security.InvalidKeyException
public static java.security.PublicKey toJCEPublicKey(oracle.security.crypto.core.PublicKey orakey) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public static oracle.security.crypto.core.RSAPrivateKey toPhaosRSAPrivateKey(java.security.interfaces.RSAPrivateKey privKey)
public static java.security.interfaces.RSAPrivateKey toJCERSAPrivateKey(oracle.security.crypto.core.RSAPrivateKey oraKey) throws java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException
java.security.NoSuchAlgorithmException
java.security.spec.InvalidKeySpecException
public static oracle.security.crypto.core.PrivateKey toPhaosPrivateKey(java.security.PrivateKey privateKey) throws java.security.InvalidKeyException
java.security.InvalidKeyException
public static oracle.security.crypto.core.KeyPair toPhaosKeyPair(java.security.KeyPair kp) throws java.security.InvalidKeyException
java.security.InvalidKeyException
public static java.lang.String addPadding(java.lang.String algoName)
algoName
-
|
Oracle Security Developer Tools PKI SDK CMP Java API Reference 11g (11.1.1) E10666-02 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |