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 = "1.3.6.1.4.1.2706.123.1.2.1"; 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 = "1.3.6.1.4.1.2706.123.1.2.1"; 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 | Field and Description |
---|---|
static ObjectID |
accessIdentity
Creates an ObjectID (1.3.6.1.5.5.7.10.2) for the X.509
AccessIdentity attribute
type to may be used in attribute
certificates . |
static ObjectID |
anyPolicy
Creates an ObjectID (2.5.29.32.0) for the x.509
anyPolicy certificate policy
which may be used within a CertificatePolicies extension to not limiting the set of policies for
certification paths which include the corresponding CA certificate. |
static ObjectID |
attrCertEncAttrs
Creates an ObjectID (1.2.840.113549.1.9.16.1.14) for the X.509
attrCertEncAttrs EncapsulatedContentInfo content type to be used when encrypting
attribute certificate attributes
within an CMS EnvelopedData (RFC 5755). |
static ObjectID |
attrCertExt_AcceptableCertPolicies
Creates an ObjectID (2.5.29.52) for the AcceptableCertPolicies attribute certificate extension
as specified by the X.509 Attribute Certificate profile (RFC 5755).
|
static ObjectID |
attrCertExt_AuditIdentity
Creates an ObjectID (1.3.6.1.5.5.7.1.4) for the AuditIdentity attribute certificate extension
as specified by the X.509 Attribute Certificate profile (RFC 5755).
|
static ObjectID |
attrCertExt_BasicAttConstraints
Creates an ObjectID (2.5.29.41) for the BasicAttConstraints attribute certificate extension
as specified by the X.509 Attribute Certificate profile (RFC 5755).
|
static ObjectID |
attrCertExt_NoRevAvail
Creates an ObjectID (2.5.29.56) for the NoRevAvail attribute certificate extension
as specified by the X.509 Attribute Certificate profile (RFC 5755).
|
static ObjectID |
attrCertExt_ProxyInfo
Creates an ObjectID (2.5.29.56) for the ProxyInfo attribute certificate extension
as specified by the X.509 Attribute Certificate profile (RFC 5755).
|
static ObjectID |
attrCertExt_TargetInformation
Creates an ObjectID (2.5.29.55) for the TargetInformation attribute certificate extension
as specified by the X.509 Attribute Certificate profile (RFC 5755).
|
static ObjectID |
authenticationInfo
Creates an ObjectID (1.3.6.1.5.5.7.10.1) for the X.509
authenticationInfo identifiying the
ServiceAuthenticationInfo attribute type to may be used in
attribute certificates . |
static ObjectID |
basicOcspResponse
Creates an ObjectID (1.3.6.1.5.5.7.48.1.1) for the x.509 id-pkix-ocsp-basic
OCSP response type, as defined by RFC 2560, RFC 6960.
|
static ObjectID |
businessCategory
Creates an ObjectID (2.5.4.15) for the X.500 attribute type
businessCategory . |
static ObjectID |
caIssuers
Creates an ObjectID (1.3.6.1.5.5.7.48.2) for the x.509 AccessDescription access method
caIssuers , as defined by RFC 3280. |
static ObjectID |
caRepository
Creates an ObjectID (1.3.6.1.5.5.7.48.5) for the x.509 AccessDescription access method
caRepository (id-ad-caRepository) which may be used within a
SubjectInfoAccess extension. |
static ObjectID |
certExt_AuthorityInfoAccess
Creates an ObjectID (1.3.6.1.5.5.7.1.1) for the X.509 AuthorityInfoAccess certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_AuthorityKeyIdentifier
Creates an ObjectID (2.5.29.35) for the X.509 AuthorityKeyIdentifier certificate/crl extension
as specified by RFC 5280.
|
static ObjectID |
certExt_BasicConstraints
Creates an ObjectID (2.5.29.19) for the X.509 BasicConstraints certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_BiometricInfo
Creates an ObjectID (1.3.6.1.5.5.7.1.2) for the BiometricInfo certificate extension as
specified by the Qualified Certificate Profile (RFC 3739).
|
static ObjectID |
certExt_CertificatePolicies
Creates an ObjectID (2.5.29.32) for the X.509 CertificatePolicies certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_CrlDistributionPoints
Creates an ObjectID (2.5.29.31) for the X.509 CRLDistributionPoints certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_ExtendedKeyUsage
Creates an ObjectID (2.5.29.37) for the X.509 ExtendedKeyUsage certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_FreshestCRL
Creates an ObjectID (2.5.29.46) for the X.509 FreshestCRL certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_InhibitAnyPolicy
Creates an ObjectID (2.5.29.54) for the X.509 InhibitAnyPolicy certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_IssuerAltName
Creates an ObjectID (2.5.29.18) for the X.509 IssuerAltName certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_KeyUsage
Creates an ObjectID (2.5.29.15) for the X.509 KeyUsage certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_NameConstraints
Creates an ObjectID (2.5.29.30) for the X.509 NameConstraints certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_NetscapeBaseUrl
Creates an ObjectID (2.16.840.1.113730.1.2) for the NetscapeBaseUrl certificate extension.
|
static ObjectID |
certExt_NetscapeCaPolicyUrl
Creates an ObjectID (2.16.840.1.113730.1.8) for the NetscapeCaPolicyUrl certificate extension.
|
static ObjectID |
certExt_NetscapeCaRevocationUrl
Creates an ObjectID (2.16.840.1.113730.1.4) for the NetscapeCaRevocationUrl certificate extension.
|
static ObjectID |
certExt_NetscapeCertRenewalUrl
Creates an ObjectID (2.16.840.1.113730.1.7) for the NetscapeCertRenewalUrl certificate extension.
|
static ObjectID |
certExt_NetscapeCertType
Creates an ObjectID (2.16.840.1.113730.1.1) for the NetscapeCertType certificate extension.
|
static ObjectID |
certExt_NetscapeComment
Creates an ObjectID (2.16.840.1.113730.1.13) for the NetscapeComment certificate extension.
|
static ObjectID |
certExt_NetscapeRevocationUrl
Creates an ObjectID (2.16.840.1.113730.1.3) for the NetscapeRevocationUrl certificate extension.
|
static ObjectID |
certExt_NetscapeSSLServerName
Creates an ObjectID (2.16.840.1.113730.1.12) for the NetscapeSSLServerName certificate extension.
|
static ObjectID |
certExt_NoCheck
Creates an ObjectID (1.3.6.1.5.5.7.48.1.5) for the NoCheck OCSP responder certificate extension
as specified by the OCSP Online Certificate Status Protocol (RFC 2560, RFC 6960).
|
static ObjectID |
certExt_PolicyConstraints
Creates an ObjectID (2.5.29.36) for the X.509 PolicyConstraints certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_PolicyMappings
Creates an ObjectID (2.5.29.33) for the X.509 PolicyMappings certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_PrivateKeyUsagePeriod
Creates an ObjectID (2.5.29.16) for the X.509 PrivateKeyUsagePeriod certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_PublicAuthorityIdentifier
Creates an ObjectID (1.2.40.0.10.1.1.1) for the PublicAuthorityIdentifier certificate extension
used for characterizing public authorities in Austrian E-Government.
|
static ObjectID |
certExt_PublicServiceProvider
Creates an ObjectID (1.2.40.0.10.1.1.2) for the PublicServiceProvider certificate extension
used for characterizing institutions that provide some kind of public service in Austrian E-Government.
|
static ObjectID |
certExt_QcStatements
Creates an ObjectID (1.3.6.1.5.5.7.1.3) for the QCStatements certificate extension as
specified by the Qualified Certificate Profile (RFC 3739).
|
static ObjectID |
certExt_SubjectAltName
Creates an ObjectID (2.5.29.17) for the X.509 SubjectAltName certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_SubjectDirectoryAttributes
Creates an ObjectID (2.5.29.9) for the X.509 SubjectDirectoryAttributes certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_SubjectInfoAccess
Creates an ObjectID (1.3.6.1.5.5.7.1.11) for the X.509 SubjectInfoAccess certificate extension
as specified by RFC 5280.
|
static ObjectID |
certExt_SubjectKeyIdentifier
Creates an ObjectID (2.5.29.14) for the X.509 SubjectKeyIdentifier certificate extension
as specified by RFC 5280.
|
static ObjectID |
certTypes
Creates an ObjectID (1.2.840.113549.1.9.22) for the PKCS#9 attribute
certTypes . |
static ObjectID |
challengePassword
Creates an ObjectID (1.2.840.113549.1.9.7) for the PKCS#9 attribute
challengePassword . |
static ObjectID |
chargingIdentity
Creates an ObjectID (1.3.6.1.5.5.7.10.3) for the X.509
ChargingIdentity
attribute type to may be used in
attribute certificates . |
static ObjectID |
clearance
Creates an ObjectID (2.5.1.5.55) for the X.509
Clearance attribute type to may
be used in attribute
certificates . |
static ObjectID |
cms_aKeyPackage
Creates an ObjectID (2.16.840.1.101.2.1.2.78.5) for the CMS
Asymmetric Key Package
content type as specified by RFC 5958 for transferring asymmetric keys. |
static ObjectID |
cms_authData
Creates an ObjectID (1.2.840.113549.1.9.16.1.2) for the CMS
AuthenticatedData content type. |
static ObjectID |
cms_authEnvelopedData
Creates an ObjectID (1.2.840.113549.1.9.16.1.23) for the CMS
AuthEnvelopedData content type
as specified by RFC 5083. |
static ObjectID |
cms_compressedData
Creates an ObjectID (1.2.840.113549.1.9.16.1.9) for the CMS
CompressedData content type. |
static ObjectID |
cms_contentInfo
Creates an ObjectID (1.2.840.113549.1.9.16.1.6) for the CMS object
CMS ContentInfo . |
static ObjectID |
cms_data
Creates an ObjectID (1.2.840.113549.1.7.1) for the CMS
Data content type. |
static ObjectID |
cms_digestedData
Creates an ObjectID (1.2.840.113549.1.7.5) for the CMS
DigestedData content type. |
static ObjectID |
cms_encryptedData
Creates an ObjectID (1.2.840.113549.1.7.6) for the CMS
EncryptedData content type. |
static ObjectID |
cms_envelopedData
Creates an ObjectID (1.2.840.113549.1.7.3) for the CMS
EnvelopedData content type. |
static ObjectID |
cms_signedData
Creates an ObjectID (1.2.840.113549.1.7.2) for the CMS
SignedData content type. |
static ObjectID |
commonName
Creates an ObjectID (2.5.4.3) for the X.500 attribute type
commonName
(shortName CN ). |
static ObjectID |
contentHint
Creates an ObjectID (1.2.840.113549.1.9.16.2.4) for the PKCS#9
ContentHint attribute as used for S/MIMEv3 ESS. |
static ObjectID |
contentIdentifier
Creates an ObjectID (1.2.840.113549.1.9.16.2.7) for the PKCS#9
ContentIdentifier attribute as used for S/MIMEv3 ESS. |
static ObjectID |
contentReference
Creates an ObjectID (1.2.840.113549.1.9.16.2.10) for the PKCS#9
ContentReference attribute as used for S/MIMEv3 ESS. |
static ObjectID |
contentType
Creates an ObjectID (1.2.840.113549.1.9.3) for the PKCS#9 attribute
contentType . |
static ObjectID |
countersignature
Creates an ObjectID (1.2.840.113549.1.9.6) for the PKCS#9/PKCS#7 attribute
countersignature . |
static ObjectID |
country
Creates an ObjectID (2.5.4.6) for the X.500 attribute type
countryName
(shortName C ). |
static ObjectID |
countryOfCitizenship
Creates an ObjectID (1.3.6.1.5.5.7.9.4) for the Qualified Certificate personal data attribute
type
CountryOfCitizenship . |
static ObjectID |
countryOfResidence
Creates an ObjectID (1.3.6.1.5.5.7.9.5) for the Qualified Certificate personal data attribute
type
CountryOfResidence . |
static ObjectID |
crlExt_AuthorityKeyIdentifier
Creates an ObjectID (2.5.29.35) for the X.509 AuthorityKeyIdentifier certificate/crl extension
as specified by RFC 5280.
|
static ObjectID |
crlExt_CertificateIssuer
Creates an ObjectID (2.5.29.29) for the X.509 CertificateIssuer crl entry extension
as specified by RFC 5280.
|
static ObjectID |
crlExt_CrlNumber
Creates an ObjectID (2.5.29.20) for the X.509 CRLNumber crl extension
as specified by RFC 5280.
|
static ObjectID |
crlExt_DeltaCRLIndicator
Creates an ObjectID (2.5.29.27) for the X.509 DeltaCRLIndicator crl extension
as specified by RFC 5280.
|
static ObjectID |
crlExt_ExpiredCertsOnCRL
Creates an ObjectID (2.5.29.60) for the X.509 ExpiredCertsOnCRL crl extension
as specified by ITU-T Recommendation X.509.
|
static ObjectID |
crlExt_HoldInstructionCode
Creates an ObjectID (2.5.29.23) for the X.509 HoldInstructionCode crl extension
as specified by RFC 5280.
|
static ObjectID |
crlExt_InvalidityDate
Creates an ObjectID (2.5.29.24) for the X.509 InvalidityDate crl extension
as specified by RFC 5280.
|
static ObjectID |
crlExt_IssuingDistributionPoint
Creates an ObjectID (2.5.29.28) for the X.509 IssuingDistributionPoint crl extension
as specified by RFC 5280.
|
static ObjectID |
crlExt_ReasonCode
Creates an ObjectID (2.5.29.21) for the X.509 ReasonCode crl extension
as specified by RFC 5280.
|
static ObjectID |
crlTypes
Creates an ObjectID (1.2.840.113549.1.9.23) for the PKCS#9 attribute
crlTypes . |
static ObjectID |
dateOfBirth
Creates an ObjectID (1.3.6.1.5.5.7.9.1) for the Qualified Certificate personal data attribute
type
DateOfBirth . |
static ObjectID |
description
Creates an ObjectID (2.5.4.13) for the X.500 attribute type
description
("2.5.4.13"). |
static ObjectID |
dnQualifier
Creates an ObjectID (2.5.4.46) for the x.500 attribute type
dnQualifier
(distinguished name qualifier). |
static ObjectID |
domainComponent
Creates an ObjectID (0.9.2342.19200300.100.1.25) for the x.500 attribute type
domainComponent (shortName DC ), as defined by
RFC 2247. |
static ObjectID |
emailAddress
Creates an ObjectID (1.2.840.113549.1.9.1) for the PKCS#9 attribute
emailAddress
(shortName EMAIL ). |
static ObjectID |
encrypKeyPref
Creates an ObjectID (1.2.840.113549.1.9.16.2.11) for the S/MIMEv3 attribute
encryptionKeyPreference . |
static ObjectID |
equivalentLabels
Creates an ObjectID (1.2.840.113549.1.9.16.2.9) for the PKCS#9
EquivalentLabels attribute as used for S/MIMEv3 ESS. |
static ObjectID |
extendedCertificateAttributes
Creates an ObjectID (1.2.840.113549.1.9.9) for the PKCS#9 attribute
extendedCertificateAttributes . |
static ObjectID |
extensionRequest
Creates an ObjectID (1.2.840.113549.1.9.14) for the PKCS#9 attribute
extensionRequest . |
static ObjectID |
friendlyName
Creates an ObjectID (1.2.840.113549.1.9.20) for the PKCS#9/PKCS#12 attribute
friendlyName . |
static ObjectID |
gender
Creates an ObjectID (1.3.6.1.5.5.7.9.3) for the Qualified Certificate personal data attribute
type
Gender . |
static ObjectID |
generationQualifier
Creates an ObjectID (2.5.4.44) for the x.500 attribute type
generationQualifier . |
static ObjectID |
givenName
Creates an ObjectID (2.5.4.42) for the x.500 attribute type
givenName ,
added by Telia. |
static ObjectID |
group
Creates an ObjectID (1.3.6.1.5.5.7.10.4) for the X.509
Group attribute type to may be used
in attribute certificates . |
static ObjectID |
iaik
Creates an ObjectID (1.3.6.1.4.1.2706) for the organization "IAIK".
|
static ObjectID |
iaikKeyStoreV3 |
static ObjectID |
id_pkix_cps
Creates an ObjectID (1.3.6.1.5.5.7.2.1) 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 (1.3.6.1.5.5.7.2.2) for the PKIX object
id-pkix-unotice
indicating a User Notice qualifier for describing a particular CA policy. |
static ObjectID |
initials
Creates an ObjectID (2.5.4.43) for the x.500 attribute type
initials . |
static ObjectID |
locality
Creates an ObjectID (2.5.4.7) for the X.500 attribute type
localityName
(shortName L ). |
static ObjectID |
localKeyID
Creates an ObjectID (1.2.840.113549.1.9.21) for the PKCS#9/PKCS#12 object
localKeyID . |
static ObjectID |
messageDigest
Creates an ObjectID (1.2.840.113549.1.9.4) for the PKCS#9/PKCS#7 attribute
messageDigest . |
static ObjectID |
mlExpandHistory
Creates an ObjectID (1.2.840.113549.1.9.16.2.3) for the PKCS#9
mlExpandHistory attribute as used for S/MIMEv3 ESS. |
static ObjectID |
msgSigDigest
Creates an ObjectID (1.2.840.113549.1.9.16.2.5) for the PKCS#9
MsgSigDigest attribute as used for S/MIMEv3 ESS. |
static ObjectID |
msoeEncrypKeyPref
The attributeType ObjectID (1.3.6.1.4.1.311.16.4) for the Mircosoft
MSOEEncryptionKeyPreference attribute. |
static ObjectID |
netscape
The Netscape base object identifier (2.16.840.1.113730).
|
static ObjectID |
netscapeCertSequence
The Netscape cert sequence object identifier.
|
static ObjectID |
ocsp
Creates an ObjectID (1.3.6.1.5.5.7.48.1) for the x.509 AccessDescription access method
ocsp , as defined by RFC 3280. |
static ObjectID |
ocspExt_AcceptableResponses
Creates an ObjectID (1.3.6.1.5.5.7.48.1.4) for the AcceptableResponses OCSP request extension
as specified by the OCSP Online Certificate Status Protocol (RFC 2560, RFC 6960).
|
static ObjectID |
ocspExt_ArchiveCutoff
Creates an ObjectID (1.3.6.1.5.5.7.48.1.6) for the ArchiveCutoff OCSP response extension
as specified by the OCSP Online Certificate Status Protocol (RFC 2560, RFC 6960).
|
static ObjectID |
ocspExt_CertHash
Creates an ObjectID (1.3.36.8.3.13) for the CertHash OCSP response extension
as specified by the Common PKI
Profile (formally ISIS-MTT).
|
static ObjectID |
ocspExt_CrlID
Creates an ObjectID (1.3.6.1.5.5.7.48.1.3) for the CrlID OCSP request extension
as specified by the OCSP Online Certificate Status Protocol (RFC 2560, RFC 6960).
|
static ObjectID |
ocspExt_ExtendedRevoked
Creates an ObjectID (1.3.6.1.5.5.7.48.1.9) for the ExtendedRevoked OCSP response extension
as specified by the OCSP Online Certificate Status Protocol (RFC 2560, RFC 6960).
|
static ObjectID |
ocspExt_Nonce
Creates an ObjectID (1.3.6.1.5.5.7.48.1.2) for the Nonce OCSP request/response extension
as specified by the OCSP Online Certificate Status Protocol (RFC 2560, RFC 6960).
|
static ObjectID |
ocspExt_PreferredSignatureAlgorithms
Creates an ObjectID (1.3.6.1.5.5.7.48.1.8) for the PreferredSignatureAlgorithms OCSP response extension
as specified by the OCSP Online Certificate Status Protocol (RFC 2560, RFC 6960).
|
static ObjectID |
ocspExt_ServiceLocator
Creates an ObjectID (1.3.6.1.5.5.7.48.1.7) for the ServiceLocator OCSP response extension
as specified by the OCSP Online Certificate Status Protocol (RFC 2560, RFC 6960).
|
static ObjectID |
organization
Creates an ObjectID (2.5.4.10) for the X.500 attribute type
organizationName (shortName O ). |
static ObjectID |
organizationalUnit
Creates an ObjectID (2.5.4.11) for the X.500 attribute type
organizationalUnitName (shortName OU ). |
static ObjectID |
organizationIdentifier
Creates an ObjectID (2.5.4.97) for the X.520 attribute type
organizationIdentifier that holds an identification of
an organization different from the organization name (see X.520). |
static ObjectID |
personalTitle
Creates an ObjectID (0.9.2342.19200300.100.1.40) for the
personalTitle attribute. |
static ObjectID |
pkcs12_certBag
Creates an ObjectID (1.2.840.113549.1.12.10.1.3) for the PKCS#12 object
PKCS#12 certBag . |
static ObjectID |
pkcs12_CertBagIds
Creates an ObjectID (1.2.840.113549.1.12.4) for the PKCS#12 object
PKCS#12 CertBagIds |
static ObjectID |
pkcs12_crlBag
Creates an ObjectID (1.2.840.113549.1.12.10.1.4) for the PKCS#12 object
PKCS#12 crlBag . |
static ObjectID |
pkcs12_keyBag
Creates an ObjectID (1.2.840.113549.1.12.10.1.1) for the PKCS#12 object
PKCS#12 keyBag . |
static ObjectID |
pkcs12_pkcs8ShroudedKeyBag
Creates an ObjectID (1.2.840.113549.1.12.10.1.2) for the PKCS#12 object
PKCS#12 pkcs8ShroudedKeyBag . |
static ObjectID |
pkcs12_safeContentsBag
Creates an ObjectID (1.2.840.113549.1.12.10.1.6) for the PKCS#12 object
PKCS#12 safeContentsBag . |
static ObjectID |
pkcs12_SDSICertBagId
Creates an ObjectID (1.2.840.113549.1.12.4.2) for the PKCS#12 object
PKCS#12 SDSICertBagId . |
static ObjectID |
pkcs12_secretBag
Creates an ObjectID (1.2.840.113549.1.12.10.1.5) for the PKCS#12 object
PKCS#12 secretBag . |
static ObjectID |
pkcs12_Version1
Creates an ObjectID (1.2.840.113549.1.12.10) for the PKCS#12 object
PKCS#12 Version1 . |
static ObjectID |
pkcs12_Version1_BagIds
Creates an ObjectID (1.2.840.113549.1.12.10.1) for the PKCS#12 object
PKCS#12 Version1 BagIds . |
static ObjectID |
pkcs12_x509CertCRLBagId
Creates an ObjectID (1.2.840.113549.1.12.4.1) for the PKCS#12 object
PKCS#12 x509CertCRLBagId . |
static ObjectID |
pkcs7
Creates an ObjectID (1.2.840.113549.1.7) for the PKCS#7 object
PKCS#7 . |
static ObjectID |
pkcs7_data
Creates an ObjectID (1.2.840.113549.1.7.1) for the PKCS#7 object
PKCS#7 data . |
static ObjectID |
pkcs7_digestedData
Creates an ObjectID (1.2.840.113549.1.7.5) for the PKCS#7 object
PKCS#7 digestedData . |
static ObjectID |
pkcs7_encryptedData
Creates an ObjectID (1.2.840.113549.1.7.6) for the PKCS#7 object
PKCS#7 encryptedData . |
static ObjectID |
pkcs7_envelopedData
Creates an ObjectID (1.2.840.113549.1.7.3) for the PKCS#7 object
PKCS#7 envelopedData . |
static ObjectID |
pkcs7_signedAndEnvelopedData
Creates an ObjectID (1.2.840.113549.1.7.4) for the PKCS#7 object
PKCS#7 signedAndEnvelopedData . |
static ObjectID |
pkcs7_signedData
Creates an ObjectID (1.2.840.113549.1.7.2) for the PKCS#7 object
PKCS#7 signedData . |
static ObjectID |
placeOfBirth
Creates an ObjectID (1.3.6.1.5.5.7.9.2) for the Qualified Certificate personal data attribute
type
PlaceOfBirth . |
static ObjectID |
postalAddress
Creates an ObjectID (2.5.4.16) for the X.500 attribute type
postalAddress . |
static ObjectID |
postalCode
Creates an ObjectID (2.5.4.17) for the X.500 attribute type
postalCode . |
static ObjectID |
pseudonym
Creates an ObjectID (2.5.4.65) for the x.500 attribute type
Pseudonym . |
static ObjectID |
qcEuCompliance
Creates an ObjectID (0.4.0.1862.1.1) for the QcEuCompliance statement info as specified
by the ETSI Profiles for Trust Service Providers issuing certificates, Part 5, Extension
for Qualified Certificates profile (ETSI EN 319 412-5, formerly ETSI TS 101 862).
|
static ObjectID |
qcEuLimitValue
Creates an ObjectID (0.4.0.1862.1.2) for the QcEuLimitValue statement info as specified
by the ETSI Profiles for Trust Service Providers issuing certificates, Part 5, Extension
for Qualified Certificates profile (ETSI EN 319 412-5, formerly ETSI TS 101 862).
|
static ObjectID |
qcEuPDS
Creates an ObjectID (0.4.0.1862.1.5) for the QcEuPDS statement info as specified
by the ETSI Profiles for Trust Service Providers issuing certificates, Part 5, Extension
for Qualified Certificates profile (ETSI EN 319 412-5, formerly ETSI TS 101 862).
|
static ObjectID |
qcEuRetentionPeriod
Creates an ObjectID (0.4.0.1862.1.3) for the QcEuRetentionPeriod statement info as specified
by the ETSI Profiles for Trust Service Providers issuing certificates, Part 5, Extension
for Qualified Certificates profile (ETSI EN 319 412-5, formerly ETSI TS 101 862).
|
static ObjectID |
qcEuSSCD
Creates an ObjectID (0.4.0.1862.1.4) for the QcEuSSCD statement info as specified
by the ETSI Profiles for Trust Service Providers issuing certificates, Part 5, Extension
for Qualified Certificates profile (ETSI EN 319 412-5, formerly ETSI TS 101 862).
|
static ObjectID |
qcSyntaxV1
Creates an ObjectID (1.3.6.1.5.5.7.11.1) for the QCSyntaxV1 statement info as specified
by the (obsoleted) version 1 of the PKIX Qualified Certificate Profile (RFC 3039).
|
static ObjectID |
qcSyntaxV2
Creates an ObjectID (1.3.6.1.5.5.7.11.2) for the QCSyntaxV2 statement info as specified
by the version 2 of the PKIX Qualified Certificate Profile (RFC 3739).
|
static ObjectID |
qcType
Creates an ObjectID (0.4.0.1862.1.6) for the QcType statement info as specified
by the ETSI Profiles for Trust Service Providers issuing certificates, Part 5, Extension
for Qualified Certificates profile (ETSI EN 319 412-5).
|
static ObjectID |
receipt
Creates an ObjectID (1.2.840.113549.1.9.16.1.1) for the PKCS#9
Receipt attribute as used for S/MIMEv3 ESS. |
static ObjectID |
receiptRequest
Creates an ObjectID (1.2.840.113549.1.9.16.2.1) for the PKCS#9
ReceiptRequest attribute as used for S/MIMEv3 ESS. |
static ObjectID |
role
Creates an ObjectID (2.5.4.72) for the X.509
Role attribute type to may be used
in attribute certificates . |
static ObjectID |
sdsiCertificate
Creates an ObjectID (1.2.840.113549.1.9.22.2) for the PKCS#9 attribute
sdsiCertificate . |
static ObjectID |
securityLabel
Creates an ObjectID (1.2.840.113549.1.9.16.2.2) for the PKCS#9
SecurityLabel attribute as used for S/MIMEv3 ESS. |
static ObjectID |
serialNumber
Creates an ObjectID (2.5.4.5) for the X.500 attribute type
serialNumber . |
static ObjectID |
signingCertificate
Creates an ObjectID (1.2.840.113549.1.9.16.2.12) for the PKCS#9
SigningCertificate attribute as used for S/MIMEv3 ESS. |
static ObjectID |
signingCertificateV2
Creates an ObjectID (1.2.840.113549.1.9.16.2.47) for the
SigningCertificateV2 attribute (RFC 5035) as used for
CMS, S/MIME. |
static ObjectID |
signingDescription
Creates an ObjectID (1.2.840.113549.1.9.13) for the PKCS#9 attribute
signingDescription . |
static ObjectID |
signingTime
Creates an ObjectID (1.2.840.113549.1.9.5) for the PKCS#9/PKCS#7 attribute
signingTime . |
static ObjectID |
smimeCapabilities
Creates an ObjectID (1.2.840.113549.1.9.15) for the PKCS#9 attribute
smimeCapabilities as
uses by S/MIME (the same as #symmetricCapabilities). |
static ObjectID |
stateOrProvince
Creates an ObjectID (2.5.4.8) for the X.500 attribute type
stateOrProvinceName (shortName ST ). |
static ObjectID |
streetAddress
Creates an ObjectID (2.5.4.9) for the X.500 attribute type
streetAddress
(shortName STREET ). |
static ObjectID |
surName
Creates an ObjectID (2.5.4.4) for the x.500 attribute type
surname
(shortName SN ), added by Telia. |
static ObjectID |
symmetricCapabilities
Creates an ObjectID (1.2.840.113549.1.9.15) for the PKCS#9 attribute
symmetricCapabilities as uses by S/MIME. |
static ObjectID |
telephoneNumber
Creates an ObjectID (2.5.4.20) for the X.500 attribute type
telephoneNumber . |
static ObjectID |
telexNumber
Creates an ObjectID (2.5.4.21) for the X.500 attribute type
telexNumber . |
static ObjectID |
timeStamping
Creates an ObjectID (1.3.6.1.5.5.7.48.3) for the x.509 AccessDescription access method
timeStamping (id-ad-timeStamping) which may be used within a
SubjectInfoAccess extension. |
static ObjectID |
timeStampToken |
static ObjectID |
title
Creates an ObjectID (2.5.4.12) for the X.500 attribute type
title
(shortName T ). |
static ObjectID |
tstInfo
Creates an ObjectID (1.2.840.113549.1.9.16.1.4) for the Time Stamp Protocol token
TSTInfo . |
static ObjectID |
uniqueIdentifier
Creates an ObjectID (2.5.4.45) for the x.500 attribute type
uniqueIdentifier , added by Telia. |
static ObjectID |
unstructuredAddress
Creates an ObjectID (1.2.840.113549.1.9.8) for PKCS#9 attribute
unstructuredAddress . |
static ObjectID |
unstructuredName
Creates an ObjectID (1.2.840.113549.1.9.2) for the PKCS#9 attribute
unstructuredName . |
static ObjectID |
userid
Creates an ObjectID (0.9.2342.19200300.100.1.1) for the COSINE/Internet attribute type
userid (shortName UID ), as defined by
RFC 1274. |
static ObjectID |
x509Certificate
Creates an ObjectID (1.2.840.113549.1.9.22.1) for the PKCS#9 attribute
x509Certificate . |
static ObjectID |
x509Crl
Creates an ObjectID (1.2.840.113549.1.9.23.1) for the PKCS#9 attribute
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,
boolean checkOIDString)
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.
|
|
ObjectID(java.lang.String oid,
java.lang.String name,
java.lang.String shortName,
boolean checkOIDString)
Constructs an ObjectID from a String representation, a String name, and a
String shortName.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkOID(boolean check)
Sets whether to check OIDs for correct syntax (default:
true ). |
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.
|
java.lang.String |
getName()
Returns the name registered for this ObjectID or the object identifier if
there is no name registered.
|
java.lang.String |
getNameAndID()
Returns the name (if registered) and OID string for this ObjectID.
|
static ObjectID |
getObjectID(java.lang.String oid)
Constructs a new ObjectID from an OID String.
|
static java.lang.String |
getRegisteredName(java.lang.String oid)
Looks if a name for the object identifier specified by the given OID string
already is registered.
|
static ObjectID |
getRegisteredObjectID(java.lang.String nameOrShortName)
Looks if an object identifier for the given name or short name
is registered.
|
static java.lang.String |
getRegisteredShortName(java.lang.String oid)
Looks if a short name for the object identifier specified by the given OID
string already is registered.
|
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 oid)
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, clone, countComponents, encodeObject, getAsnType, getComponentAt, indefiniteLength, isA, isConstructed, isStringType, setIndefiniteLength
public static final ObjectID commonName
commonName
(shortName CN
).public static final ObjectID serialNumber
serialNumber
.
ASN.1 definition of type serialNumber:
SerialNumber ::= PrintableString (SIZE(1..64))
public static final ObjectID country
countryName
(shortName C
).public static final ObjectID locality
localityName
(shortName L
).public static final ObjectID stateOrProvince
stateOrProvinceName
(shortName ST
). When using
it, type ObjectID.stateOrProvince
public static final ObjectID streetAddress
streetAddress
(shortName STREET
).public static final ObjectID organization
organizationName
(shortName O
).public static final ObjectID organizationalUnit
organizationalUnitName
(shortName OU
). When using
it, type ObjectID.organizationalUnit
public static final ObjectID organizationIdentifier
organizationIdentifier
that holds an identification of
an organization different from the organization name (see X.520).public static final ObjectID title
title
(shortName T
).
The title
is specified in RFC 4519, X.520:
This attribute contains the title, such as "Vice President", of a person in their organizational context. The "personalTitle" attribute would be used for a person's title independent of their job function.
personalTitle
public static final ObjectID personalTitle
personalTitle
attribute.
The personalTitle
attribute is specified by RFC 4524
(COSINE LDAP/X.500 Schema):
The 'personalTitle' attribute specifies personal titles for a person. Examples of personal titles are "Frau", "Dr.", "Herr", and "Professor".
title
public static final ObjectID description
description
("2.5.4.13").public static final ObjectID businessCategory
businessCategory
.
public static final ObjectID postalAddress
postalAddress
.
ASN.1 definition of type postalAddress:
PostalAddress ::= SEQUENCE OF DirectoryString
public static final ObjectID postalCode
postalCode
.public static final ObjectID telephoneNumber
telephoneNumber
.public static final ObjectID telexNumber
telexNumber
.public static final ObjectID surName
surname
(shortName SN
), added by Telia.public static final ObjectID givenName
givenName
,
added by Telia.public static final ObjectID initials
initials
.public static final ObjectID generationQualifier
generationQualifier
.public static final ObjectID uniqueIdentifier
uniqueIdentifier
, added by Telia.public static final ObjectID dnQualifier
dnQualifier
(distinguished name qualifier).public static final ObjectID pseudonym
Pseudonym
.public static final ObjectID domainComponent
domainComponent
(shortName DC
), as defined by
RFC 2247.
ASN.1 definition of type DomainComponent:
DomainComponent ::= IA5String
public static final ObjectID userid
userid
(shortName UID
), as defined by
RFC 1274. The Userid attribute type specifies a computer system login
name. ObjectID.userid
.public static final ObjectID dateOfBirth
DateOfBirth
. ObjectID.dateOfBirth
.
ASN.1 definition of type DateOfBirth:
DateOfBirth ::= GeneralizedTime
public static final ObjectID placeOfBirth
PlaceOfBirth
. ObjectID.placeOfBirth
.
ASN.1 definition of type PlaceOfBirth:
PlaceOfBirth ::= DirectoryString
public static final ObjectID gender
Gender
. ObjectID.gender
.
ASN.1 definition of type Gender:
Gender ::= PrintableString (SIZE(1)) -- "M", "F", "m" or "f"
public static final ObjectID countryOfCitizenship
CountryOfCitizenship
. ObjectID.countryOfCitizenship
.
ASN.1 definition of type CountryOfCitizenship:
CountryOfCitizenship ::= PrintableString (SIZE(2)) -- ISO 3166 Country Code
public static final ObjectID countryOfResidence
CountryOfResidence
. ObjectID.countryOfResidence
.
ASN.1 definition of type CountryOfResidence:
CountryOfResidence ::= PrintableString (SIZE(2)) -- ISO 3166 Country Code
public static final ObjectID basicOcspResponse
public static final ObjectID certExt_SubjectDirectoryAttributes
public static final ObjectID certExt_SubjectKeyIdentifier
public static final ObjectID certExt_KeyUsage
public static final ObjectID certExt_PrivateKeyUsagePeriod
public static final ObjectID certExt_SubjectAltName
public static final ObjectID certExt_IssuerAltName
public static final ObjectID certExt_BasicConstraints
public static final ObjectID certExt_NameConstraints
public static final ObjectID certExt_CrlDistributionPoints
public static final ObjectID certExt_CertificatePolicies
public static final ObjectID certExt_PolicyMappings
public static final ObjectID certExt_AuthorityKeyIdentifier
public static final ObjectID crlExt_AuthorityKeyIdentifier
certExt_AuthorityKeyIdentifier
.public static final ObjectID certExt_PolicyConstraints
public static final ObjectID certExt_ExtendedKeyUsage
public static final ObjectID certExt_FreshestCRL
public static final ObjectID certExt_InhibitAnyPolicy
public static final ObjectID certExt_AuthorityInfoAccess
public static final ObjectID certExt_SubjectInfoAccess
public static final ObjectID crlExt_CrlNumber
public static final ObjectID crlExt_ReasonCode
public static final ObjectID crlExt_HoldInstructionCode
public static final ObjectID crlExt_InvalidityDate
public static final ObjectID crlExt_DeltaCRLIndicator
public static final ObjectID crlExt_IssuingDistributionPoint
public static final ObjectID crlExt_CertificateIssuer
public static final ObjectID crlExt_ExpiredCertsOnCRL
public static final ObjectID certExt_NetscapeCertType
public static final ObjectID certExt_NetscapeBaseUrl
public static final ObjectID certExt_NetscapeRevocationUrl
public static final ObjectID certExt_NetscapeCaRevocationUrl
public static final ObjectID certExt_NetscapeCaPolicyUrl
public static final ObjectID certExt_NetscapeCertRenewalUrl
public static final ObjectID certExt_NetscapeSSLServerName
public static final ObjectID certExt_NetscapeComment
public static final ObjectID certExt_BiometricInfo
public static final ObjectID certExt_QcStatements
public static final ObjectID certExt_NoCheck
public static final ObjectID certExt_PublicAuthorityIdentifier
public static final ObjectID certExt_PublicServiceProvider
public static final ObjectID attrCertExt_AuditIdentity
public static final ObjectID attrCertExt_BasicAttConstraints
public static final ObjectID attrCertExt_AcceptableCertPolicies
public static final ObjectID attrCertExt_TargetInformation
public static final ObjectID attrCertExt_NoRevAvail
public static final ObjectID attrCertExt_ProxyInfo
public static final ObjectID ocspExt_Nonce
public static final ObjectID ocspExt_CrlID
public static final ObjectID ocspExt_AcceptableResponses
public static final ObjectID ocspExt_ArchiveCutoff
public static final ObjectID ocspExt_ServiceLocator
public static final ObjectID ocspExt_PreferredSignatureAlgorithms
public static final ObjectID ocspExt_ExtendedRevoked
public static final ObjectID ocspExt_CertHash
public static final ObjectID ocsp
ocsp
, as defined by RFC 3280.public static final ObjectID caIssuers
caIssuers
, as defined by RFC 3280.public static final ObjectID caRepository
caRepository
(id-ad-caRepository) which may be used within a
SubjectInfoAccess
extension.public static final ObjectID timeStamping
timeStamping
(id-ad-timeStamping) which may be used within a
SubjectInfoAccess
extension.public static final ObjectID timeStampToken
public static final ObjectID anyPolicy
anyPolicy
certificate policy
which may be used within a CertificatePolicies
extension to not limiting the set of policies for
certification paths which include the corresponding CA certificate. When
using it, type ObjectID.anyPolicy
.public static final ObjectID authenticationInfo
authenticationInfo
identifiying the
ServiceAuthenticationInfo
attribute type to may be used in
attribute certificates
.public static final ObjectID accessIdentity
AccessIdentity
attribute
type to may be used in attribute
certificates
.public static final ObjectID chargingIdentity
ChargingIdentity
attribute type to may be used in
attribute certificates
.public static final ObjectID group
Group
attribute type to may be used
in attribute certificates
.public static final ObjectID role
Role
attribute type to may be used
in attribute certificates
.public static final ObjectID clearance
Clearance
attribute type to may
be used in attribute
certificates
.public static final ObjectID attrCertEncAttrs
attribute certificate
attributes
within an CMS EnvelopedData (RFC 5755).public static final ObjectID qcSyntaxV1
public static final ObjectID qcSyntaxV2
public static final ObjectID qcEuCompliance
public static final ObjectID qcEuLimitValue
public static final ObjectID qcEuRetentionPeriod
public static final ObjectID qcEuSSCD
public static final ObjectID qcEuPDS
public static final ObjectID qcType
public static final ObjectID pkcs7
PKCS#7
. When using
it, type ObjectID.pkcs7
public static final ObjectID pkcs7_data
PKCS#7 data
. When
using it, type ObjectID.pkcs7_data
public static final ObjectID pkcs7_signedData
PKCS#7 signedData
.public static final ObjectID pkcs7_envelopedData
PKCS#7 envelopedData
.public static final ObjectID pkcs7_signedAndEnvelopedData
PKCS#7 signedAndEnvelopedData
.public static final ObjectID pkcs7_digestedData
PKCS#7 digestedData
.public static final ObjectID pkcs7_encryptedData
PKCS#7 encryptedData
.public static final ObjectID tstInfo
TSTInfo
.public static final ObjectID emailAddress
emailAddress
(shortName EMAIL
).public static final ObjectID unstructuredName
unstructuredName
.public static final ObjectID contentType
contentType
.public static final ObjectID messageDigest
messageDigest
.public static final ObjectID signingTime
signingTime
.public static final ObjectID countersignature
countersignature
.public static final ObjectID challengePassword
challengePassword
.public static final ObjectID unstructuredAddress
unstructuredAddress
.public static final ObjectID extendedCertificateAttributes
extendedCertificateAttributes
.public static final ObjectID signingDescription
signingDescription
.public static final ObjectID extensionRequest
extensionRequest
.public static final ObjectID symmetricCapabilities
symmetricCapabilities
as uses by S/MIME.public static final ObjectID friendlyName
friendlyName
.public static final ObjectID localKeyID
localKeyID
.public static final ObjectID certTypes
certTypes
. When
using it, type ObjectID.certTypes
public static final ObjectID x509Certificate
x509Certificate
.public static final ObjectID sdsiCertificate
sdsiCertificate
.public static final ObjectID crlTypes
crlTypes
.public static final ObjectID x509Crl
x509Crl
.public static final ObjectID receipt
Receipt
attribute as used for S/MIMEv3 ESS.public static final ObjectID receiptRequest
ReceiptRequest
attribute as used for S/MIMEv3 ESS.public static final ObjectID securityLabel
SecurityLabel
attribute as used for S/MIMEv3 ESS.public static final ObjectID mlExpandHistory
mlExpandHistory
attribute as used for S/MIMEv3 ESS.public static final ObjectID contentHint
ContentHint
attribute as used for S/MIMEv3 ESS.public static final ObjectID msgSigDigest
MsgSigDigest
attribute as used for S/MIMEv3 ESS.public static final ObjectID contentIdentifier
ContentIdentifier
attribute as used for S/MIMEv3 ESS.public static final ObjectID equivalentLabels
EquivalentLabels
attribute as used for S/MIMEv3 ESS.public static final ObjectID contentReference
ContentReference
attribute as used for S/MIMEv3 ESS.public static final ObjectID signingCertificate
SigningCertificate
attribute as used for S/MIMEv3 ESS.public static final ObjectID signingCertificateV2
SigningCertificateV2
attribute (RFC 5035) as used for
CMS, S/MIME.public static final ObjectID pkcs12_CertBagIds
PKCS#12 CertBagIds
public static final ObjectID pkcs12_x509CertCRLBagId
PKCS#12 x509CertCRLBagId
.public static final ObjectID pkcs12_SDSICertBagId
PKCS#12 SDSICertBagId
.public static final ObjectID pkcs12_Version1
PKCS#12 Version1
.public static final ObjectID pkcs12_Version1_BagIds
PKCS#12 Version1 BagIds
.public static final ObjectID pkcs12_keyBag
PKCS#12 keyBag
.public static final ObjectID pkcs12_pkcs8ShroudedKeyBag
PKCS#12 pkcs8ShroudedKeyBag
.public static final ObjectID pkcs12_certBag
PKCS#12 certBag
.public static final ObjectID pkcs12_crlBag
PKCS#12 crlBag
.public static final ObjectID pkcs12_secretBag
PKCS#12 secretBag
.public static final ObjectID pkcs12_safeContentsBag
PKCS#12 safeContentsBag
.public static final 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.public static final ObjectID id_pkix_unotice
id-pkix-unotice
indicating a User Notice qualifier for describing a particular CA policy.public static final ObjectID netscape
public static final ObjectID netscapeCertSequence
public static final ObjectID cms_data
Data
content type.public static final ObjectID cms_signedData
SignedData
content type.public static final ObjectID cms_envelopedData
EnvelopedData
content type.public static final ObjectID cms_digestedData
DigestedData
content type.public static final ObjectID cms_encryptedData
EncryptedData
content type.public static final ObjectID cms_authData
AuthenticatedData
content type.public static final ObjectID cms_authEnvelopedData
AuthEnvelopedData
content type
as specified by RFC 5083.public static final ObjectID cms_compressedData
CompressedData
content type.public static final ObjectID cms_contentInfo
CMS ContentInfo
.public static final ObjectID cms_aKeyPackage
Asymmetric Key Package
content type as specified by RFC 5958 for transferring asymmetric keys.public static final ObjectID smimeCapabilities
smimeCapabilities
as
uses by S/MIME (the same as #symmetricCapabilities).public static final ObjectID encrypKeyPref
encryptionKeyPreference
.public static final ObjectID msoeEncrypKeyPref
MSOEEncryptionKeyPreference
attribute.public static final ObjectID iaik
public static final ObjectID iaikKeyStoreV3
protected ObjectID()
public ObjectID(java.lang.String oid)
oid
- the objectID as String, e.g. "1.2.3.4"java.lang.IllegalArgumentException
- if the oid string is invalid formattedpublic ObjectID(java.lang.String oid, boolean checkOIDString)
oid
- the objectID as String, e.g. "1.2.3.4"checkOIDString
- whether to check the OID string for correct syntaxjava.lang.IllegalArgumentException
- if the oid string is invalid formatted (if checkOIDString
is
set to true
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 = "1.3.6.1.4.1.2706.123.1.2.1"; 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 objectIDjava.lang.IllegalArgumentException
- if the oid string is invalid formattedpublic 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 = "1.3.6.1.4.1.2706.123.1.2.1"; 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"java.lang.IllegalArgumentException
- if the oid string is invalid formattedpublic ObjectID(java.lang.String oid, java.lang.String name, java.lang.String shortName, boolean checkOIDString)
hasRegisteredName
method for querying if
a name for the particular oid already has been registered, e.g.:
String oidStr = "1.3.6.1.4.1.2706.123.1.2.1"; String name = "myObjectID"; String shortName = "mO"; ObjectID oid = null; if (!ObjectID.hasRegisteredName(oidStr)) { oid = new ObjectID(oidStr, name, shortName); }This constructor is does the same as the
ObjectID(oid, name, shortName)
constructor, except that it allows to explictly decide whether to check the
oid string for correct syntax or not. If, for instance, you have decided to
check oid strings by default
you may use this
constructor for creating ObjectIDs for oid strings where you are sure that
they are correct and therefore do not have to be checked.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"checkOIDString
- whether to check the oid string for correct syntaxjava.lang.IllegalArgumentException
- if checkOIDString
is true
and the
oid string is invalid formattedpublic 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 java.lang.String getRegisteredName(java.lang.String oid)
oid
- the OID-String specifying the object identifier to be looked for,
e.g. "1.2.4.5"null
if no name is registeredpublic static java.lang.String getRegisteredShortName(java.lang.String oid)
oid
- the OID-String specifying the object identifier to be looked for,
e.g. "1.2.4.5"null
if no name is registeredpublic static ObjectID getRegisteredObjectID(java.lang.String nameOrShortName)
nameOrShortName
- the name or short name for the object identifier to be looked for,
e.g. "commonName" or "CN"null
if no ObjectID is registeredpublic static ObjectID getObjectID(java.lang.String oid)
oid
- the oid String (e.g. "2.5.29.35")public static void checkOID(boolean check)
true
).check
- true
for checking oids, false
for not
checking thempublic java.lang.Object getValue()
getValue
in class ASN1Object
public void setValue(java.lang.Object oid)
setValue
in class ASN1Object
oid
- the value (na OID string) to be set for this ObjectIDjava.lang.IllegalArgumentException
- if the oid string is invalid formattedpublic java.lang.String getID()
public java.lang.String getName()
public java.lang.String getShortName()
public java.lang.String getNameAndID()
If a name is registered, this method returns "name (OID string)", e.g.: "commonName (2.5.4.3)". If no name is registered, the OID string is returned only: "2.5.4.3".
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- - 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 ASN1Object
os
- 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 ASN1Object
length
- 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 ASN1Object
ASN1Object.toString()