public class ObjectID extends ASN1Object
This class uses Strings as representation of object identifiers. For example: "1.2.3.4".
This class is responsible for generating ObjectIDs for several X.500, PKCS#7,
PKCS#9, PKCS#12 and PKIX objects that may be used by specifying the corresponding
objectID´s name:
ObjectID.<name>,
for instance:
ObjectID policyQualifierId = ObjectID.id_pkix_cps;Beside this, new ObjectIDs may be created by using one of the several constructors, either by only specifying the
OID-String of the new
ObjectID, or by additionally specifying the name
(and the shortName).
When name (and shortName) are specified, they are automatically registered for the
new ObjectID, e.g:
String oidStr = "9.5.12345.17.8"; String name = "myObjectID"; String shortName = "mO"; ObjectID myOID = new ObjectID(oidStr, name, shortName);Otherwise, if only the OID string for the new ObjectID is supplied, no name respectively shortName registration can be performed.
When creating a new ObjectID by means of one of the several constructors, an already
existing ObjectID with the same oid string will be replaced. For that reason it may
be useful to call the hasRegisteredName method
for querying if a name already has been registered for some particular oid before
creating a new one - and overwriting the old one, e.g.:
String oidStr = "9.5.12345.17.8";
String name = "myObjectID";
String shortName = "mO";
ObjectID oid = null;
if (!ObjectID.hasRegisteredName(oidStr)) {
oid = new ObjectID(oidStr, name, shortName);
}
The hasRegisteredName method only will return
true if a name already has been regsitered; in that way, it will return
false, if only an OID string - and no name/shortName - has been specified
when creating the ObjectID in mind.ASN1Object,
ASN| Modifier and Type | Class and Description |
|---|---|
static class |
ObjectID.Algorithms
Contains a set of pre-defined (known) algorithm object-identifiers.
|
static class |
ObjectID.EntrustCertDefn
Contains a set of pre-defined (known) Entrust certificate-definition
policy object-identifiers.
|
| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
anyPolicy
Creates an ObjectID for the X.500 special policy value
anyPolicy. |
static ObjectID |
caIssuers
Creates an ObjectID for the x.509 AccessDescription access method
caIssuers, as defined by RFC 3280. |
static ObjectID |
caRepository
Creates an ObjectID for the x.509 AccessDescription access method
caIssuers, as defined by RFC 3280. |
static ObjectID |
certTypes
Creates an ObjectID for the PKCS#9 object
certTypes. |
static ObjectID |
challengePassword
Creates an ObjectID for the PKCS#9 object
challengePassword. |
static ObjectID |
cms_authData
Creates an ObjectID for the CMS object
CMS AuthenticatedData. |
static ObjectID |
cms_contentInfo
Creates an ObjectID for the CMS object
CMS ContentInfo. |
static ObjectID |
cms_data
Creates an ObjectID for the CMS object
CMS Data. |
static ObjectID |
cms_digestedData
Creates an ObjectID for the CMS object
CMS DigestedData. |
static ObjectID |
cms_encryptedData
Creates an ObjectID for the CMS object
CMS EncryptedData. |
static ObjectID |
cms_envelopedData
Creates an ObjectID for the CMS object
CMS EnvelopedData. |
static ObjectID |
cms_signedData
Creates an ObjectID for the CMS object
CMS SignedData. |
static ObjectID |
commonName
OID String: "2.5.4.3"
OID Name: "commonName" OID Short-name: "cn" Source: RFC 4519 |
static ObjectID |
contentType
Creates an ObjectID for the PKCS#9 object
contentType. |
static ObjectID |
countersignature
Creates an ObjectID for the PKCS#9 object
countersignature. |
static ObjectID |
country
OID String: "2.5.4.6"
OID Name: "countryName" OID Short-name: "c" Source: RFC 4519 |
static ObjectID |
countryOfCitizenship
Creates an ObjectID for the Qualified Certificate personal data attribute type
CountryOfCitizenship. |
static ObjectID |
countryOfResidence
Creates an ObjectID for the Qualified Certificate personal data attribute type
CountryOfResidence. |
static ObjectID |
crlTypes
Creates an ObjectID for the PKCS#9 object
crlTypes. |
static ObjectID |
dateOfBirth
Creates an ObjectID for the Qualified Certificate personal data attribute type
DateOfBirth. |
static ObjectID |
description
OID String: "2.5.4.13"
OID Name: "description" OID Short-name: none Source: RFC 4519 |
static ObjectID |
dnQualifier
OID String: "2.5.4.46"
OID Name: "dnQualifier" OID Short-name: none Source: RFC 4519 |
static ObjectID |
domainComponent
OID String: "0.9.2342.19200300.100.1.25"
OID Name: "domainComponent" OID Short-name: "dc" Source: RFC 4519 |
static ObjectID |
emailAddress
Creates an ObjectID for the PKCS#9 object
emailAddress (shortName EMAIL). |
static ObjectID |
encrypKeyPref
Creates an ObjectID for the S/MIMEv3 object
encryptionKeyPreference. |
static ObjectID |
entrustAdministratorName
Creates an ObjectID for the entrustAdministratorName.
|
static ObjectID |
extendedCertificateAttributes
Creates an ObjectID for the PKCS#9 object
extendedCertificateAttributes. |
static ObjectID |
extensionRequest
Creates an ObjectID for the PKCS#9 object
extensionRequest. |
static ObjectID |
friendlyName
Creates an ObjectID for the PKCS#9 object
friendlyName. |
static ObjectID |
gender
Creates an ObjectID for the Qualified Certificate personal data attribute type
Gender. |
static ObjectID |
generationQualifier
OID String: "2.5.4.44"
OID Name: "generationQualifier" OID Short-name: none Source: RFC 4519 |
static ObjectID |
givenName
OID String: "2.5.4.42"
OID Name: "givenName" OID Short-name: none Source: RFC 4519 |
static ObjectID |
houseIdentifier
OID String: "2.5.4.51"
OID Name: "houseIdentifier" OID Short-name: none Source: RFC 4519 |
static ObjectID |
id_pkix_cps
Creates an ObjectID for the PKIX object
id-pkix-cps
indicating a CPS Pointer qualifier for defining a (URI) pointer
to a Certification Practice Statement (CPS) describing a particular
CA policy. |
static ObjectID |
id_pkix_unotice
Creates an ObjectID for the PKIX object
id-pkix-unotice
indicating a User Notice qualifier for describing a particular
CA policy. |
static ObjectID |
initials
OID String: "2.5.4.43"
OID Name: "initials" OID Short-name: none Source: RFC 4519 |
static ObjectID |
locality
OID String: "2.5.4.7"
OID Name: "localityName" OID Short-name: "l" Source: RFC 4519 |
static ObjectID |
localKeyID
Creates an ObjectID for the PKCS#9 object
localKeyID. |
static ObjectID |
mail
OID String: "0.9.2342.19200300.100.1.3"
OID Name: "mail" OID Short-name: "mail" Source: RFC 4519 |
static ObjectID |
messageDigest
Creates an ObjectID for the PKCS#9 object
messageDigest. |
static ObjectID |
netscape
The Netscape base object identifier.
|
static ObjectID |
netscapeCertSequence
The Netscape cert seequence object identifier.
|
static ObjectID |
OCSP
Creates an ObjectID for the x.509 AccessDescription access method
OCSP, as defined by RFC 3280. |
static ObjectID |
organization
OID String: "2.5.4.10"
OID Name: "organizationName" OID Short-name: "o" Source: RFC 4519 |
static ObjectID |
organizationalUnit
OID String: "2.5.4.11"
OID Name: "organizationalUnitName" OID Short-name: "ou" Source: RFC 4519 |
static ObjectID |
organizationIdentifier
OID String: "2.5.4.97"
OID Name: "organizationIdentifier" OID Short-name: "oi" Source: X.520 Corrigendum 3 (10/2012) |
static ObjectID |
pkcs12_certBag
Creates an ObjectID for the PKCS#12 object
PKCS#12 certBag. |
static ObjectID |
pkcs12_CertBagIds
Creates an ObjectID for the PKCS#12 object
PKCS#12 CertBagIds
When using it, type ObjectID.pkcs12_CertBagIds |
static ObjectID |
pkcs12_crlBag
Creates an ObjectID for the PKCS#12 object
PKCS#12 crlBag. |
static ObjectID |
pkcs12_keyBag
Creates an ObjectID for the PKCS#12 object
PKCS#12 keyBag. |
static ObjectID |
pkcs12_pkcs8ShroudedKeyBag
Creates an ObjectID for the PKCS#12 object
PKCS#12 pkcs8ShroudedKeyBag. |
static ObjectID |
pkcs12_safeContentsBag
Creates an ObjectID for the PKCS#12 object
PKCS#12 safeContentsBag. |
static ObjectID |
pkcs12_SDSICertBagId
Creates an ObjectID for the PKCS#12 object
PKCS#12 SDSICertBagId. |
static ObjectID |
pkcs12_secretBag
Creates an ObjectID for the PKCS#12 object
PKCS#12 secretBag. |
static ObjectID |
pkcs12_Version1
Creates an ObjectID for the PKCS#12 object
PKCS#12 Version1. |
static ObjectID |
pkcs12_Version1_BagIds
Creates an ObjectID for the PKCS#12 object
PKCS#12 Version1 BagIds. |
static ObjectID |
pkcs12_x509CertCRLBagId
Creates an ObjectID for the PKCS#12 object
PKCS#12 x509CertCRLBagId. |
static ObjectID |
pkcs7
Creates an ObjectID for the PKCS#7 object
PKCS#7. |
static ObjectID |
pkcs7_data
Creates an ObjectID for the PKCS#7 object
PKCS#7 data. |
static ObjectID |
pkcs7_digestedData
Creates an ObjectID for the PKCS#7 object
PKCS#7 digestedData. |
static ObjectID |
pkcs7_encryptedData
Creates an ObjectID for the PKCS#7 object
PKCS#7 encryptedData. |
static ObjectID |
pkcs7_envelopedData
Creates an ObjectID for the PKCS#7 object
PKCS#7 envelopedData. |
static ObjectID |
pkcs7_signedAndEnvelopedData
Creates an ObjectID for the PKCS#7 object
PKCS#7 signedAndEnvelopedData. |
static ObjectID |
pkcs7_signedData
Creates an ObjectID for the PKCS#7 object
PKCS#7 signedData. |
static ObjectID |
pkix_ad_caIssuers
Creates an ObjectID for the
pkix-ad-caIssuers object . |
static ObjectID |
pkix_ad_ocsp
Creates an ObjectID for the
pkix-ad-ocsp object . |
static ObjectID |
pkix_ocsp_archive_cutoff
Creates an ObjectID for the
pkix-ocsp-archive-cutoff object . |
static ObjectID |
pkix_ocsp_basic
Creates an ObjectID for the
pkix-ocsp-basic object . |
static ObjectID |
pkix_ocsp_crl
Creates an ObjectID for the
pkix-ocsp-crl object . |
static ObjectID |
pkix_ocsp_nocheck
Creates an ObjectID for the
pkix-ocsp-nocheck object . |
static ObjectID |
pkix_ocsp_nonce
Creates an ObjectID for the
pkix-ocsp-nonce object . |
static ObjectID |
pkix_ocsp_response
Creates an ObjectID for the
pkix-ocsp-response object . |
static ObjectID |
pkix_ocsp_service_locator
Creates an ObjectID for the
pkix-ocsp-service-locator object . |
static ObjectID |
placeOfBirth
Creates an ObjectID for the Qualified Certificate personal data attribute type
PlaceOfBirth. |
static ObjectID |
postalAddress
OID String: "2.5.4.16"
OID Name: "postalAddress" OID Short-name: none Source: RFC 4519 |
static ObjectID |
postalCode
OID String: "2.5.4.17"
OID Name: "postalCode" OID Short-name: none Source: RFC 4519 |
static ObjectID |
pseudonym
Creates an ObjectID for the x.500 attribute type
Pseudonym. |
static ObjectID |
sdsiCertificate
Creates an ObjectID for the PKCS#9 object
sdsiCertificate. |
static ObjectID |
serialNumber
OID String: "2.5.4.5"
OID Name: "serialNumber" OID Short-name: none Source: RFC 4519 |
static ObjectID |
signingCertificate
Creates an ObjectID the for PKCS#9
SigningCertificate attribute
as used for S/MIMEv3 ESS. |
static ObjectID |
signingDescription
Creates an ObjectID for the PKCS#9 object
signingDescription. |
static ObjectID |
signingTime
Creates an ObjectID for the PKCS#9 object
signingTime. |
static ObjectID |
smimeCapabilities
Creates an ObjectID for the PKCS#9 object
smimeCapabilities as
uses by S/MIME (the same as #symmetricCapabilities). |
static ObjectID |
stateOrProvince
OID String: "2.5.4.8"
OID Name: "stateOrProvinceName" OID Short-name: "st" Source: RFC 4519 |
static ObjectID |
streetAddress
OID String: "2.5.4.9"
OID Name: "streetAddress" OID Short-name: "street" Source: RFC 4519 |
static ObjectID |
surName
OID String: "2.5.4.4"
OID Name: "surname" OID Short-name: "sn" Source: RFC 4519 |
static ObjectID |
symmetricCapabilities
Creates an ObjectID for the PKCS#9 object
symmetricCapabilities. |
static ObjectID |
telephoneNumber
OID String: "2.5.4.20"
OID Name: "telephoneNumber" OID Short-name: none Source: RFC 4519 |
static ObjectID |
telexNumber
OID String: "2.5.4.21"
OID Name: "telexNumber" OID Short-name: none Source: RFC 4519 |
static ObjectID |
timeStamping
Creates an ObjectID for the x.509 AccessDescription access method
timeStamping which may be used within a SubjectInfoAccess extension. |
static ObjectID |
timeStampToken
The object identifier identifies the Signature Time-stamp attribute.
|
static ObjectID |
title
OID String: "2.5.4.12"
OID Name: "title" OID Short-name: none Source: RFC 4519 |
static ObjectID |
tstInfo
Creates an ObjectID for the Time Stamp Protocol token
TSTInfo. |
static ObjectID |
uniqueIdentifier
OID String: "2.5.4.45"
OID Name: "x500UniqueIdentifier" OID Short-name: none Source: RFC 4519 |
static ObjectID |
unstructuredAddress
Creates the PKCS#9 ObjectID
unstructeredAddress. |
static ObjectID |
unstructuredName
Creates an ObjectID for the PKCS#9 object
unstructeredName. |
static ObjectID |
userid
OID String: "0.9.2342.19200300.100.1.1"
OID Name: "userid" OID Short-name: "uid" Source: RFC 4519 |
static ObjectID |
x509Certificate
Creates an ObjectID for the PKCS#9 object
x509Certificate. |
static ObjectID |
x509Crl
Creates an ObjectID for the PKCS#9 object
x509Crl. |
asnType, constructed, encode_listener, indefinite_length, isStringType, stream_mode| Modifier | Constructor and Description |
|---|---|
protected |
ObjectID()
The default constructor.
|
|
ObjectID(java.lang.String oid)
Constructs an ObjectID from a String.
|
|
ObjectID(java.lang.String oid,
java.lang.String name)
Constructs an ObjectID from a String representation and a String name.
|
|
ObjectID(java.lang.String oid,
java.lang.String name,
java.lang.String shortName)
Constructs an ObjectID from a String representation, a String name, and a String shortName.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(int length,
java.io.InputStream is)
Decodes the next available data from the InputStream.
|
protected void |
encode(java.io.OutputStream os)
DER encodes this OBjectID ASN1Object and writes the result to given OutputStream.
|
boolean |
equals(java.lang.Object obj)
Compares this ObjectID to the specified object.
|
java.lang.String |
getID()
Returns the objectID as string.
|
static ObjectID |
getInstance(java.lang.String name)
Returns an
OBJECT IDENTIFIER (OID) object,
ObjectID. |
java.lang.String |
getName()
Returns the name registered for this ObjectID or the
object identifier if there is no name registered.
|
static ObjectID |
getObjectID(java.lang.String nameOrOid)
Returns an
OBJECT IDENTIFIER (OID) object,
ObjectID. |
java.lang.String |
getShortName()
Returns the short name registered for this ObjectID.
|
java.lang.Object |
getValue()
Returns the value of this ObjectID as a String object.
|
int |
hashCode()
Returns a hash code for this object.
|
static boolean |
hasRegisteredName(java.lang.String oid)
Looks if a name for the object identifier specified by the given OID string already
is registered.
|
void |
setValue(java.lang.Object object)
Sets the value of this object to value (e.g.
|
java.lang.String |
toString()
Returns a string that represents the contents of the ObjectID.
|
addComponent, addEncodeListener, countComponents, encodeObject, getAsnType, getComponentAt, indefiniteLength, isA, isConstructed, isStringType, setAutomaticRepair, setAutomaticRepairRecursive, setIndefiniteLength, setIndefiniteRecursivepublic static ObjectID commonName
public static ObjectID surName
public static ObjectID serialNumber
public static ObjectID country
public static ObjectID locality
public static ObjectID stateOrProvince
public static ObjectID streetAddress
public static ObjectID organization
public static ObjectID organizationalUnit
public static ObjectID title
public static ObjectID description
public static ObjectID postalAddress
public static ObjectID postalCode
public static ObjectID telephoneNumber
public static ObjectID telexNumber
public static ObjectID givenName
public static ObjectID initials
public static ObjectID generationQualifier
public static ObjectID uniqueIdentifier
public static ObjectID dnQualifier
public static ObjectID houseIdentifier
public static ObjectID pseudonym
Pseudonym.
When using it, type ObjectID.pseudonym.public static ObjectID organizationIdentifier
public static ObjectID mail
public static ObjectID domainComponent
public static ObjectID userid
public static ObjectID dateOfBirth
DateOfBirth.
ObjectID.dateOfBirth.
ASN.1 definition of type DateOfBirth:
DateOfBirth ::= GeneralizedTime
public static ObjectID placeOfBirth
PlaceOfBirth.
ObjectID.placeOfBirth.
ASN.1 definition of type PlaceOfBirth:
PlaceOfBirth ::= DirectoryString
public static ObjectID gender
Gender.
ObjectID.gender.
ASN.1 definition of type Gender:
Gender ::= PrintableString (SIZE(1)) -- "M", "F", "m" or "f"
public static ObjectID countryOfCitizenship
CountryOfCitizenship.
ObjectID.countryOfCitizenship.
ASN.1 definition of type CountryOfCitizenship:
CountryOfCitizenship ::= PrintableString (SIZE(2)) -- ISO 3166 Country Code
public static ObjectID countryOfResidence
CountryOfResidence.
ObjectID.countryOfResidence.
ASN.1 definition of type CountryOfResidence:
CountryOfResidence ::= PrintableString (SIZE(2)) -- ISO 3166 Country Code
public static ObjectID OCSP
OCSP, as defined by RFC 3280.
When using it, type ObjectID.OCSP.public static ObjectID caIssuers
caIssuers, as defined by RFC 3280.
When using it, type ObjectID.caIssuers.public static final ObjectID timeStamping
timeStamping which may be used within a SubjectInfoAccess extension.
When using it, type ObjectID.timeStamping.public static ObjectID caRepository
caIssuers, as defined by RFC 3280.
When using it, type ObjectID.caIssuers.public static ObjectID pkcs7
PKCS#7.
When using it, type ObjectID.pkcs7public static ObjectID pkcs7_data
PKCS#7 data.
When using it, type ObjectID.pkcs7_datapublic static ObjectID pkcs7_signedData
PKCS#7 signedData.
When using it, type ObjectID.pkcs7_signedDatapublic static ObjectID pkcs7_envelopedData
PKCS#7 envelopedData.
When using it, type ObjectID.pkcs7_envelopedDatapublic static ObjectID pkcs7_signedAndEnvelopedData
PKCS#7 signedAndEnvelopedData.
When using it, type ObjectID.pkcs7_signedAndEnvelopedDatapublic static ObjectID pkcs7_digestedData
PKCS#7 digestedData.
When using it, type ObjectID.pkcs7_digestedDatapublic static ObjectID pkcs7_encryptedData
PKCS#7 encryptedData.
When using it, type ObjectID.pkcs7_encryptedDatapublic static ObjectID tstInfo
TSTInfo.
When using it, type ObjectID.tstInfo.public static ObjectID entrustAdministratorName
ObjectID.entrustAdministratorNamepublic static ObjectID cms_data
CMS Data.
When using it, type ObjectID.cms_datapublic static ObjectID cms_signedData
CMS SignedData.
When using it, type ObjectID.cms_signedDatapublic static ObjectID cms_envelopedData
CMS EnvelopedData.
When using it, type ObjectID.cms_envelopedDatapublic static ObjectID cms_digestedData
CMS DigestedData.
When using it, type ObjectID.cms_digestedDatapublic static ObjectID cms_encryptedData
CMS EncryptedData.
When using it, type ObjectID.cms_encryptedDatapublic static ObjectID cms_authData
CMS AuthenticatedData.
When using it, type ObjectID.cms_authDatapublic static ObjectID cms_contentInfo
CMS ContentInfo.
When using it, type ObjectID.cms_contentInfopublic static ObjectID emailAddress
emailAddress (shortName EMAIL).
When using it, type ObjectID.emailAddresspublic static ObjectID unstructuredName
unstructeredName.
When using it, type ObjectID.unstructeredNamepublic static ObjectID contentType
contentType.
When using it, type ObjectID.contentTypepublic static ObjectID messageDigest
messageDigest.
When using it, type ObjectID.messageDigestpublic static ObjectID signingTime
signingTime.
When using it, type ObjectID.signingTimepublic static ObjectID countersignature
countersignature.
When using it, type ObjectID.countersignaturepublic static ObjectID challengePassword
challengePassword.
When using it, type ObjectID.challengePasswordpublic static ObjectID unstructuredAddress
unstructeredAddress.
When using it, type ObjectID.unstructeredAddresspublic static ObjectID extendedCertificateAttributes
extendedCertificateAttributes.
When using it, type ObjectID.extendedCertificateAttributespublic static ObjectID signingCertificate
SigningCertificate attribute
as used for S/MIMEv3 ESS.
When using it, type ObjectID.signingAttribute.public static ObjectID signingDescription
signingDescription.
When using it, type ObjectID.signingDescriptionpublic static ObjectID extensionRequest
extensionRequest.
When using it, type extensionRequestpublic static ObjectID symmetricCapabilities
symmetricCapabilities.
When using it, type ObjectID.symmetricCapabilitiespublic static ObjectID friendlyName
friendlyName.
When using it, type ObjectID.friendlyNamepublic static ObjectID localKeyID
localKeyID.
When using it, type ObjectID.localKeyIDpublic static ObjectID certTypes
certTypes.
When using it, type ObjectID.certTypespublic static ObjectID x509Certificate
x509Certificate.
When using it, type ObjectID.x509Certificatepublic static ObjectID sdsiCertificate
sdsiCertificate.
When using it, type ObjectID.sdsiCertificatepublic static ObjectID crlTypes
crlTypes.
When using it, type ObjectID.crlTypespublic static ObjectID x509Crl
x509Crl.
When using it, type ObjectID.x509Crlpublic static ObjectID smimeCapabilities
smimeCapabilities as
uses by S/MIME (the same as #symmetricCapabilities).
When using it, type ObjectID.smimeCapabilitiespublic static ObjectID encrypKeyPref
encryptionKeyPreference.
When using it, type ObjectID.encrypKeyPref.public static ObjectID pkcs12_CertBagIds
PKCS#12 CertBagIds
When using it, type ObjectID.pkcs12_CertBagIdspublic static ObjectID pkcs12_x509CertCRLBagId
PKCS#12 x509CertCRLBagId.
When using it, type ObjectID.pkcs12_x509CertCRLBagId public static ObjectID pkcs12_SDSICertBagId
PKCS#12 SDSICertBagId.
When using it, type ObjectID.pkcs12_SDSICertBagId public static ObjectID pkcs12_Version1
PKCS#12 Version1.
When using it, type ObjectID.pkcs12_Version1 public static ObjectID pkcs12_Version1_BagIds
PKCS#12 Version1 BagIds.
When using it, type ObjectID.pkcs12_Version1_BagIds public static ObjectID pkcs12_keyBag
PKCS#12 keyBag.
When using it, type ObjectID.pkcs12_keyBag public static ObjectID pkcs12_pkcs8ShroudedKeyBag
PKCS#12 pkcs8ShroudedKeyBag.
When using it, type ObjectID.pkcs12_pkcs8ShroudedKeyBag public static ObjectID pkcs12_certBag
PKCS#12 certBag.
When using it, type ObjectID.pkcs12_certBag public static ObjectID pkcs12_crlBag
PKCS#12 crlBag.
When using it, type ObjectID.pkcs12_crlBag public static ObjectID pkcs12_secretBag
PKCS#12 secretBag.
When using it, type ObjectID.pkcs12_secretBag public static ObjectID pkcs12_safeContentsBag
PKCS#12 safeContentsBag.
When using it, type ObjectID.pkcs12_safeContentsBag public static ObjectID id_pkix_cps
id-pkix-cps
indicating a CPS Pointer qualifier for defining a (URI) pointer
to a Certification Practice Statement (CPS) describing a particular
CA policy.
When using it, type ObjectID.id_pkix_cps
public static ObjectID id_pkix_unotice
id-pkix-unotice
indicating a User Notice qualifier for describing a particular
CA policy.
When using it, type ObjectID.id_pkix_unotice
public static ObjectID anyPolicy
anyPolicy.
When using it, type ObjectID.anyPolicypublic static ObjectID netscape
ObjectID.netscape.public static ObjectID netscapeCertSequence
ObjectID.netscapeCertSequence.public static ObjectID pkix_ad_ocsp
pkix-ad-ocsp object .
When using it, type ObjectID.pkix_ad_ocsp.public static ObjectID pkix_ad_caIssuers
pkix-ad-caIssuers object .
When using it, type ObjectID.pkix_ad_caIssuers.public static ObjectID pkix_ocsp_basic
pkix-ocsp-basic object .
When using it, type ObjectID.pkix_ocsp_basic.public static ObjectID pkix_ocsp_nonce
pkix-ocsp-nonce object .
When using it, type ObjectID.pkix_ocsp_nonce.public static ObjectID pkix_ocsp_crl
pkix-ocsp-crl object .
When using it, type ObjectID.pkix_ocsp_crl.public static ObjectID pkix_ocsp_response
pkix-ocsp-response object .
When using it, type ObjectID.pkix_ocsp_response.public static ObjectID pkix_ocsp_nocheck
pkix-ocsp-nocheck object .
When using it, type ObjectID.pkix_adpkix_ocsp_nocheck.public static ObjectID pkix_ocsp_archive_cutoff
pkix-ocsp-archive-cutoff object .
When using it, type ObjectID.pkix_ocsp_archive_cutoff.public static ObjectID pkix_ocsp_service_locator
pkix-ocsp-service-locator object .
When using it, type ObjectID.pkix_ocsp_service_locator.public static final ObjectID timeStampToken
protected ObjectID()
public ObjectID(java.lang.String oid)
oid - the objectID as String, e.g. "1.2.3.4"public ObjectID(java.lang.String oid,
java.lang.String name)
hasRegisteredName method for querying
if a name for the particular oid already has been registered, e.g.:
String oidStr = "9.5.12345.17.8";
String name = "myObjectID";
ObjectID oid = null;
if (!ObjectID.hasRegisteredName(oidStr)) {
oid = new ObjectID(oidStr, name);
}
oid - the objectID as String, e.g. "1.2.3.4"name - a name for the objectIDpublic ObjectID(java.lang.String oid,
java.lang.String name,
java.lang.String shortName)
hasRegisteredName method for querying
if a name for the particular oid already has been registered, e.g.:
String oidStr = "9.5.12345.17.8";
String name = "myObjectID";
String shortName = "mO";
ObjectID oid = null;
if (!ObjectID.hasRegisteredName(oidStr)) {
oid = new ObjectID(oidStr, name, shortName);
}
oid - the objectID as String, e.g. "1.2.3.4"name - a name for the objectID, e.g. "commonName"shortName - a short name for the objectID e.g. "CN"public static boolean hasRegisteredName(java.lang.String oid)
oid - the OID-String specifying the object identifier to be looked for,
e.g. "1.2.4.5"true if a name for the object identifier with this OID specification
already is registered, false otherwisepublic static ObjectID getInstance(java.lang.String name)
OBJECT IDENTIFIER (OID) object,
ObjectID.
This method is responsible for returning an ObjectID
given either the registered name or the short name of any existing
OID that has already been registered. It will also be
case-insensitive with regards to all name comparisons.
name - a String representing the registered name or
the short name of an existing registered OIDpublic static ObjectID getObjectID(java.lang.String nameOrOid)
OBJECT IDENTIFIER (OID) object,
ObjectID.
This method is responsible for returning an ObjectID
given one of the following:
nameOrOid - a String representing the registered name
or the short name of an existing registered OIC, or the
dotted-decimal form of any OID, registered or notpublic java.lang.Object getValue()
getValue in class ASN1Objectpublic void setValue(java.lang.Object object)
setValue in class ASN1Objectobject - the value (na OID string) to be set for this ObjectIDpublic java.lang.String getID()
public java.lang.String getName()
public java.lang.String getShortName()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - - the object to compare this ObjectID against.true, if the object is equal to this ObjectID
false otherwiseprotected void encode(java.io.OutputStream os)
throws java.io.IOException
encode in class ASN1Objectos - the output stream to which to write the encoded datajava.io.IOException - if an error occurs while writing to the streamprotected void decode(int length,
java.io.InputStream is)
throws java.io.IOException
decode in class ASN1Objectlength - the length of the ASN1Object which shall be decodedis - the input stream from which the DER encoded data is read injava.io.IOException - if there is a problem with the InputStreampublic java.lang.String toString()
toString in class ASN1ObjectASN1Object.toString()