Class AuthInfoAccessExtension
java.lang.Object
org.mozilla.jss.netscape.security.x509.Extension
org.mozilla.jss.netscape.security.extensions.AuthInfoAccessExtension
- All Implemented Interfaces:
Serializable
,CertAttrSet
This represents the authority information access extension
as defined in RFC2459.
id-pkix OBJECT IDENTIFIER ::= { iso(1) identified-organization(3) dod(6)
internet(1) security(5) mechanisms(5)
pkix(7) } }
id-pe OBJECT IDENTIFIER ::= { id-pkix 1 }
id-pe-authorityInfoAccess OBJECT IDENTIFIER ::= { id-pe 1 }
AuthorityInfoAccessSyntax ::= SEQUENCE SIZE (1..MAX) OF AccessDescription
AccessDescription ::= SEQUENCE {
accessMethod OBJECT IDENTIFIER,
accessLocation GeneralName
}
id-ad OBJECT IDENTIFIER ::= { id-pkix 48 }
id-ad-ocsp OBJECT IDENTIFIER ::= { id-ad 1 }
id-ad-caIssuers OBJECT IDENTIFIER ::= { id-ad 2 }
Need to make sure the following is added to CMS.cfg:
oidmap.auth_info_access.class=com.netscape.certsrv.cert.AuthInfoAccessExtension
oidmap.auth_info_access.oid=1.3.6.1.5.5.7.1.1
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectIdentifier
private Vector
<AccessDescription> static final ObjectIdentifier
static final ObjectIdentifier
static final String
static final String
static final int[]
static final int[]
static final int[]
private static final long
Fields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue
-
Constructor Summary
ConstructorsConstructorDescriptionAuthInfoAccessExtension
(boolean critical) Create the extension from the passed DER encoded value of the same.AuthInfoAccessExtension
(Boolean critical, Object value) Create the extension from the passed DER encoded value of the same. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAccessDescription
(ObjectIdentifier method, GeneralName gn) Adds Access Description.void
decode
(InputStream in) Decodes this extension.private void
void
Deletes attribute.void
encode
(OutputStream out) Write the extension to the DerOutputStream.private void
Retrieves extension attribute.getAccessDescription
(int pos) Return an enumeration of names of attributes existing within this attribute.getName()
Return the name of this attribute.static void
int
Returns the number of access description.void
Sets extension attribute.toString()
Returns a printable representation of the AuthInfoAccess.Methods inherited from class org.mozilla.jss.netscape.security.x509.Extension
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setCritical, setExtensionId, setExtensionValue
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
NAME
- See Also:
-
NAME2
- See Also:
-
OID_OCSP
public static final int[] OID_OCSP -
METHOD_OCSP
-
OID_CA_ISSUERS
public static final int[] OID_CA_ISSUERS -
METHOD_CA_ISSUERS
-
OID
public static final int[] OID -
ID
-
mDesc
-
-
Constructor Details
-
AuthInfoAccessExtension
public AuthInfoAccessExtension(boolean critical) Create the extension from the passed DER encoded value of the same.- Parameters:
critical
- true if the extension is to be treated as critical.
-
AuthInfoAccessExtension
Create the extension from the passed DER encoded value of the same.- Parameters:
critical
- true if the extension is to be treated as critical.value
- Array of DER encoded bytes of the actual value.- Throws:
IOException
- on error.
-
-
Method Details
-
set
Sets extension attribute.- Specified by:
set
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.- Throws:
CertificateException
- on attribute handling errors.
-
get
Retrieves extension attribute.- Specified by:
get
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to return.- Returns:
- attribute value
- Throws:
CertificateException
- on attribute handling errors.
-
delete
Deletes attribute.- Specified by:
delete
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to delete.- Throws:
CertificateException
- on attribute handling errors.
-
decode
Decodes this extension.- Specified by:
decode
in interfaceCertAttrSet
- Parameters:
in
- the InputStream to read the encoded attribute from.- Throws:
IOException
- on other errors.
-
getAttributeNames
Return an enumeration of names of attributes existing within this attribute.- Specified by:
getAttributeNames
in interfaceCertAttrSet
- Returns:
- an enumeration of the attribute names.
-
getName
Return the name of this attribute.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the name of this CertAttrSet.
-
addAccessDescription
Adds Access Description. -
getAccessDescription
-
numberOfAccessDescription
public int numberOfAccessDescription()Returns the number of access description. -
decodeThis
- Throws:
IOException
-
encodeThis
- Throws:
IOException
-
encode
Write the extension to the DerOutputStream.- Specified by:
encode
in interfaceCertAttrSet
- Parameters:
out
- the DerOutputStream to write the extension to.- Throws:
IOException
- on encoding errors.
-
toString
Returns a printable representation of the AuthInfoAccess.- Specified by:
toString
in interfaceCertAttrSet
- Overrides:
toString
in classExtension
- Returns:
- value of this certificate attribute in printable form.
-
main
-