|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.security.x509.AlgorithmId
Field Summary | |
static ObjectIdentifier |
DESCBC_oid
Identifies the Data Encryption Standard (DES) symmetric key cryptographic algorithm in Cipher Block Chaining (CBC) mode; defined in NIST OIW. |
static ObjectIdentifier |
DH_oid
Algorithm ID for Diffie Hellman Key agreement, from PKCS #3. |
static ObjectIdentifier |
DH_PKIX_oid
Algorithm ID for the Diffie Hellman Key Agreement (DH), from the IETF PKIX IPKI Part I. |
static ObjectIdentifier |
DSA_oid
Algorithm ID for the Digital Signing Algorithm (DSA), from the IETF PKIX IPKI Part I. |
static ObjectIdentifier |
DSA_OIW_oid
Algorithm ID for the Digital Signing Algorithm (DSA), from the NIST OIW Stable Agreements part 12. |
static ObjectIdentifier |
HmacSHA1_oid
Message Authentication Code (MAC) ID for HmacSHA1 from RFC 2630. |
static ObjectIdentifier |
MD2_oid
Algorithm ID for the MD2 Message Digest Algorthm, from RFC 1319. |
static ObjectIdentifier |
md2WithRSAEncryption_oid
Identifies a signing algorithm where an MD2 digest is encrypted using an RSA private key; defined in PKCS #1. |
static ObjectIdentifier |
MD5_oid
Algorithm ID for the MD5 Message Digest Algorthm, from RFC 1321. |
static ObjectIdentifier |
md5WithRSAEncryption_oid
Identifies a signing algorithm where an MD5 digest is encrypted using an RSA private key; defined in PKCS #1. |
protected com.ibm.security.util.DerValue |
params
Parameters for this algorithm. |
static ObjectIdentifier |
PasswordBasedMac_oid
ID for PasswordBasedMac (PBM) from RFC 2510. |
static ObjectIdentifier |
RC2CBC_oid
Identifies the Rivest Cipher 2 (RC2) symmetric key cryptographic algorithm in Cipher Block Chaining (CBC) mode. |
static ObjectIdentifier |
RSA_oid
Algorithm ID for RSA keys used for any purpose, as defined in X.509. |
static ObjectIdentifier |
RSAEncryption_oid
Algorithm ID for RSA keys used with RSA encryption, as defined in PKCS #1. |
static ObjectIdentifier |
SHA_oid
Algorithm ID for the SHA1 Message Digest Algorithm, from FIPS 180-1. |
static ObjectIdentifier |
sha1WithDSA_oid
Identifies the FIPS 186 "Digital Signature Standard" (DSS), where a SHA1 digest is signed using the Digital Signing Algorithm (DSA). |
static ObjectIdentifier |
sha1WithDSA_OIW_oid
Identifies the FIPS 186 "Digital Signature Standard" (DSS), where a SHA1 digest is signed using the Digital Signing Algorithm (DSA). |
static ObjectIdentifier |
sha1WithRSAEncryption_oid
Identifies a signing algorithm where a SHA1 digest is encrypted using an RSA private key; defined by RSA DSI. |
static ObjectIdentifier |
sha1WithRSAEncryption_OIW_oid
Identifies a signing algorithm where a SHA1 digest is encrypted using an RSA private key; defined in NIST OIW. |
static ObjectIdentifier |
shaWithDSA_OIW_oid
Identifies the FIPS 186 "Digital Signature Standard" (DSS), where a SHA digest is signed using the Digital Signing Algorithm (DSA). |
static ObjectIdentifier |
tripleDESCBC_oid
Identifies the Triple Data Encryption Standard (DESede or "Triple DES") symmetric key cryptographic algorithm in Cipher Block Chaining (CBC) mode. |
Constructor Summary | |
AlgorithmId(com.ibm.security.util.DerValue val)
Constructs an algorithm identifier from its ASN.1 encoding. |
|
AlgorithmId(com.ibm.security.util.DerValue val,
String provider)
Constructs an algorithm identifier from its ASN.1 encoding. |
|
AlgorithmId(ObjectIdentifier oid)
Constructs a parameterless algorithm ID. |
|
AlgorithmId(ObjectIdentifier oid,
byte[] params)
Constructs an algorithm identifier from an oid and ASN.1 encoded parameters. |
|
AlgorithmId(ObjectIdentifier oid,
byte[] params,
String provider)
Constructs an algorithm identifier from an oid and ASN.1 encoded parameters. |
|
AlgorithmId(ObjectIdentifier oid,
String provider)
Constructs a parameterless algorithm ID. |
|
AlgorithmId(String oid,
byte[] params)
Constructs an algorithm identifier from an oid in string representation and ASN.1 encoded parameters. |
|
AlgorithmId(String oid,
byte[] params,
String provider)
Constructs an algorithm identifier from an oid in string representation and ASN.1 encoded parameters. |
Method Summary | |
protected void |
decodeParams()
LOCKDOWN remove default ctor public AlgorithmId() { } |
void |
derEncode(OutputStream out)
DER encode this object onto an output stream. |
byte[] |
encode()
Returns the DER-encoded X.509 AlgorithmId as a byte array. |
void |
encode(com.ibm.security.util.DerOutputStream out)
Marshal a DER-encoded "AlgorithmID" sequence on the DER stream. |
boolean |
equals(AlgorithmId other)
Returns true iff the argument indicates the same algorithm with the same parameters. |
boolean |
equals(Object other)
Compares this AlgorithmID to another. |
boolean |
equals(ObjectIdentifier id)
Compares two algorithm IDs for equality. |
static AlgorithmId |
get(String algname)
Returns one of the algorithm IDs most commonly associated with this algorithm name. |
static AlgorithmId |
get(String algname,
String provider)
Returns one of the algorithm IDs most commonly associated with this algorithm name. |
static AlgorithmId |
getAlgorithmId(String algname)
Deprecated. use the short get form of this method. |
AlgorithmParameters |
getAlgParameters()
Returns the algorithm parameters. |
byte[] |
getEncodedParams()
Returns the DER encoded parameter, which can then be used to initialize java.security.AlgorithmParamters. |
String |
getName()
Returns a name for the algorithm which may be more intelligible to humans than the algorithm's OID, but which won't necessarily be comprehensible on other systems. |
ObjectIdentifier |
getOID()
Returns the ISO OID for this algorithm. |
byte[] |
getParameters()
Returns the ASN.1 encoded parameters. |
protected String |
paramsToString()
Provides a human-readable description of the algorithm parameters. |
static AlgorithmId |
parse(com.ibm.security.util.DerValue val)
Parse (unmarshal) an ID from a DER sequence input value. |
static AlgorithmId |
parse(com.ibm.security.util.DerValue val,
String provider)
Parse (unmarshal) an ID from a DER sequence input value. |
String |
toString()
Returns a string describing the algorithm and its parameters. |
Field Detail |
protected com.ibm.security.util.DerValue params
public static ObjectIdentifier MD2_oid
public static ObjectIdentifier MD5_oid
public static ObjectIdentifier SHA_oid
public static ObjectIdentifier HmacSHA1_oid
public static ObjectIdentifier PasswordBasedMac_oid
public static ObjectIdentifier DH_oid
public static ObjectIdentifier DH_PKIX_oid
public static ObjectIdentifier DSA_OIW_oid
public static ObjectIdentifier DSA_oid
public static ObjectIdentifier RSA_oid
public static ObjectIdentifier RSAEncryption_oid
public static ObjectIdentifier md2WithRSAEncryption_oid
public static ObjectIdentifier md5WithRSAEncryption_oid
public static ObjectIdentifier sha1WithRSAEncryption_oid
public static ObjectIdentifier sha1WithRSAEncryption_OIW_oid
public static ObjectIdentifier shaWithDSA_OIW_oid
public static ObjectIdentifier sha1WithDSA_OIW_oid
public static ObjectIdentifier sha1WithDSA_oid
public static ObjectIdentifier DESCBC_oid
public static ObjectIdentifier tripleDESCBC_oid
public static ObjectIdentifier RC2CBC_oid
Constructor Detail |
public AlgorithmId(com.ibm.security.util.DerValue val) throws IOException
public AlgorithmId(com.ibm.security.util.DerValue val, String provider) throws IOException
public AlgorithmId(ObjectIdentifier oid, byte[] params) throws IOException
public AlgorithmId(ObjectIdentifier oid, byte[] params, String provider) throws IOException
public AlgorithmId(String oid, byte[] params) throws IOException
public AlgorithmId(String oid, byte[] params, String provider) throws IOException
public AlgorithmId(ObjectIdentifier oid)
oid
- the identifier for the algorithmpublic AlgorithmId(ObjectIdentifier oid, String provider)
oid
- the identifier for the algorithmprovider
- the provider being usedMethod Detail |
public static AlgorithmId getAlgorithmId(String algname) throws NoSuchAlgorithmException
algname
- the name being usedpublic AlgorithmParameters getAlgParameters()
public byte[] getParameters() throws IOException
public static AlgorithmId get(String algname) throws NoSuchAlgorithmException
algname
- the name being usedpublic static AlgorithmId get(String algname, String provider) throws NoSuchAlgorithmException
algname
- the name being usedprovider
- the provider being usedpublic static AlgorithmId parse(com.ibm.security.util.DerValue val) throws IOException
val
- the input value, which contains the algid and, if
there are any parameters, those parameters.public static AlgorithmId parse(com.ibm.security.util.DerValue val, String provider) throws IOException
val
- the input value, which contains the algid and, if
there are any parameters, those parameters.provider
- the provider being usedprotected void decodeParams() throws IOException
public final void encode(com.ibm.security.util.DerOutputStream out) throws IOException
public void derEncode(OutputStream out) throws IOException
DerEncoder
interface.out
- the output stream on which to write the DER encoding.public final byte[] encode() throws IOException
public final ObjectIdentifier getOID()
getName
call when you do not need to ensure cross-system portability
of algorithm names, or need a user friendly name.public String getName()
public String toString()
public byte[] getEncodedParams() throws IOException
protected String paramsToString()
public boolean equals(AlgorithmId other)
public boolean equals(Object other)
other
- preferably an AlgorithmId, else an ObjectIdentifierpublic final boolean equals(ObjectIdentifier id)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |