Package org.mozilla.jss.asn1
Class OBJECT_IDENTIFIER
- java.lang.Object
-
- org.mozilla.jss.asn1.OBJECT_IDENTIFIER
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OBJECT_IDENTIFIER.Template
-
Field Summary
-
Constructor Summary
Constructors Constructor Description OBJECT_IDENTIFIER(long[] numbers)
Creates an OBJECT_IDENTIFIER from an array of longs, which constitute the numbers that make up the OBJECT IDENTIFIER.OBJECT_IDENTIFIER(java.lang.String dottedOID)
Creates an OBJECT_IDENTIFIER from a String version.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using its own base tag.void
encode(Tag implicitTag, java.io.OutputStream ostream)
Write this value's DER encoding to an output stream using an implicit tag.boolean
equals(java.lang.Object obj)
long[]
getNumbers()
Tag
getTag()
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.static OBJECT_IDENTIFIER.Template
getTemplate()
int
hashCode()
OBJECT_IDENTIFIER
subBranch(long num)
Creates a new OBJECT_IDENTIFIER that is a sub-branch of this one.OBJECT_IDENTIFIER
subBranch(long[] newNums)
Creates a new OBJECT_IDENTIFIER that is a sub-branch of this one.java.lang.String
toDottedString()
java.lang.String
toString()
-
-
-
Field Detail
-
EC_PUBKEY_OID
public static final OBJECT_IDENTIFIER EC_PUBKEY_OID
The OID space for EC
-
RSADSI
public static final OBJECT_IDENTIFIER RSADSI
The OID space for RSA Data Security, Inc.
-
PKCS
public static final OBJECT_IDENTIFIER PKCS
The OID space for RSA's PKCS (public key cryptography standards).
-
PKCS1
public static final OBJECT_IDENTIFIER PKCS1
The OID space for RSA's PKCS #1.
-
PKCS2
public static final OBJECT_IDENTIFIER PKCS2
The OID space for RSA's PKCS #2, which has since been folded into PKCS #1.
-
RSA_DIGEST
public static final OBJECT_IDENTIFIER RSA_DIGEST
The OID space for RSA's message digest algorithms.
-
PKCS5
public static final OBJECT_IDENTIFIER PKCS5
The OID space for RSA's password-based encryption standard.
-
PKCS9
public static final OBJECT_IDENTIFIER PKCS9
The OID space for RSA's Selected Attribute Types standard, PKCS #9.
-
PKCS12
public static final OBJECT_IDENTIFIER PKCS12
The OID space for RSA's personal information exchange syntax standard.
-
RSA_CIPHER
public static final OBJECT_IDENTIFIER RSA_CIPHER
The OID space for RSA's ciphers.
-
ALGORITHM
public static final OBJECT_IDENTIFIER ALGORITHM
The OID space for FIPS standardized algorithms.
-
HASH_ALGORITHM
public static final OBJECT_IDENTIFIER HASH_ALGORITHM
The OID space for FIPS-180-2 SHA256/SHA384/SHA512 standardized algorithms.
-
PKIX
public static final OBJECT_IDENTIFIER PKIX
The OID space for PKIX.
-
id_cmc
public static final OBJECT_IDENTIFIER id_cmc
-
id_cmc_cMCStatusInfo
public static final OBJECT_IDENTIFIER id_cmc_cMCStatusInfo
CMC control attributes
-
id_cmc_identification
public static final OBJECT_IDENTIFIER id_cmc_identification
-
id_cmc_identityProof
public static final OBJECT_IDENTIFIER id_cmc_identityProof
-
id_cmc_dataReturn
public static final OBJECT_IDENTIFIER id_cmc_dataReturn
-
id_cmc_transactionId
public static final OBJECT_IDENTIFIER id_cmc_transactionId
-
id_cmc_senderNonce
public static final OBJECT_IDENTIFIER id_cmc_senderNonce
-
id_cmc_recipientNonce
public static final OBJECT_IDENTIFIER id_cmc_recipientNonce
-
id_cmc_addExtensions
public static final OBJECT_IDENTIFIER id_cmc_addExtensions
-
id_cmc_encryptedPOP
public static final OBJECT_IDENTIFIER id_cmc_encryptedPOP
-
id_cmc_decryptedPOP
public static final OBJECT_IDENTIFIER id_cmc_decryptedPOP
-
id_cmc_lraPOPWitness
public static final OBJECT_IDENTIFIER id_cmc_lraPOPWitness
-
id_cmc_getCert
public static final OBJECT_IDENTIFIER id_cmc_getCert
-
id_cmc_getCRL
public static final OBJECT_IDENTIFIER id_cmc_getCRL
-
id_cmc_revokeRequest
public static final OBJECT_IDENTIFIER id_cmc_revokeRequest
-
id_cmc_regInfo
public static final OBJECT_IDENTIFIER id_cmc_regInfo
-
id_cmc_responseInfo
public static final OBJECT_IDENTIFIER id_cmc_responseInfo
-
id_cmc_QueryPending
public static final OBJECT_IDENTIFIER id_cmc_QueryPending
-
id_cmc_idPOPLinkRandom
public static final OBJECT_IDENTIFIER id_cmc_idPOPLinkRandom
-
id_cmc_idPOPLinkWitness
public static final OBJECT_IDENTIFIER id_cmc_idPOPLinkWitness
-
id_cmc_idConfirmCertAcceptance
public static final OBJECT_IDENTIFIER id_cmc_idConfirmCertAcceptance
-
id_cmc_statusInfoV2
public static final OBJECT_IDENTIFIER id_cmc_statusInfoV2
-
id_cmc_trustedAnchors
public static final OBJECT_IDENTIFIER id_cmc_trustedAnchors
-
id_cmc_authData
public static final OBJECT_IDENTIFIER id_cmc_authData
-
id_cmc_batchRequests
public static final OBJECT_IDENTIFIER id_cmc_batchRequests
-
id_cmc_batchResponses
public static final OBJECT_IDENTIFIER id_cmc_batchResponses
-
id_cmc_publishCert
public static final OBJECT_IDENTIFIER id_cmc_publishCert
-
id_cmc_modCertTemplate
public static final OBJECT_IDENTIFIER id_cmc_modCertTemplate
-
id_cmc_controlProcessed
public static final OBJECT_IDENTIFIER id_cmc_controlProcessed
-
id_cmc_popLinkWitnessV2
public static final OBJECT_IDENTIFIER id_cmc_popLinkWitnessV2
-
id_cmc_identityProofV2
public static final OBJECT_IDENTIFIER id_cmc_identityProofV2
-
id_cct
public static final OBJECT_IDENTIFIER id_cct
-
id_cct_PKIData
public static final OBJECT_IDENTIFIER id_cct_PKIData
-
id_cct_PKIResponse
public static final OBJECT_IDENTIFIER id_cct_PKIResponse
-
TAG
public static final Tag TAG
-
FORM
public static final Form FORM
-
-
Constructor Detail
-
OBJECT_IDENTIFIER
public OBJECT_IDENTIFIER(long[] numbers)
Creates an OBJECT_IDENTIFIER from an array of longs, which constitute the numbers that make up the OBJECT IDENTIFIER.- Parameters:
numbers
- Numbers.
-
OBJECT_IDENTIFIER
public OBJECT_IDENTIFIER(java.lang.String dottedOID) throws java.lang.NumberFormatException
Creates an OBJECT_IDENTIFIER from a String version. The proper format for the OID string is dotted numbers, for example: "3.2.456.53.23.64
". Because the toString() method here provides a different format, we also allow that format, for example: "{3 2 456 53 23 64}
".- Parameters:
dottedOID
- OID string.- Throws:
java.lang.NumberFormatException
- If the given string cannot be parsed into an OID.
-
-
Method Detail
-
getTag
public Tag getTag()
Description copied from interface:ASN1Value
Returns the base tag for this type, not counting any tags that may be imposed on it by its context.
-
getNumbers
public long[] getNumbers()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
subBranch
public OBJECT_IDENTIFIER subBranch(long num)
Creates a new OBJECT_IDENTIFIER that is a sub-branch of this one. For example, ifOBJECT_IDENTIFIER oid
has the value { 1 3 5 6 }, then callingoid.subBranch(4)
would return a new OBJECT_IDENTIFIER with the value { 1 3 5 6 4 }.- Parameters:
num
- Number.- Returns:
- New sub-branch.
-
subBranch
public OBJECT_IDENTIFIER subBranch(long[] newNums)
Creates a new OBJECT_IDENTIFIER that is a sub-branch of this one. For example, ifOBJECT_IDENTIFIER oid
has the value { 1 3 5 6 }, then callingoid.subBranch(new long[]{ 4, 3})
would return a new OBJECT_IDENTIFIER with the value { 1 3 5 6 4 3}.- Parameters:
newNums
- New numbers.- Returns:
- New sub-branch.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toDottedString
public java.lang.String toDottedString()
-
encode
public void encode(java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using its own base tag.
-
encode
public void encode(Tag implicitTag, java.io.OutputStream ostream) throws java.io.IOException
Description copied from interface:ASN1Value
Write this value's DER encoding to an output stream using an implicit tag.
-
getTemplate
public static OBJECT_IDENTIFIER.Template getTemplate()
-
-