Class AuthInfoAccessExtension

  • All Implemented Interfaces:
    java.io.Serializable, CertAttrSet

    public class AuthInfoAccessExtension
    extends Extension
    implements 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
    See Also:
    Serialized Form
    • Constructor Detail

      • 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

        public AuthInfoAccessExtension​(java.lang.Boolean critical,
                                       java.lang.Object value)
                                throws java.io.IOException
        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:
        java.io.IOException - on error.
    • Method Detail

      • set

        public void set​(java.lang.String name,
                        java.lang.Object obj)
                 throws java.security.cert.CertificateException
        Sets extension attribute.
        Specified by:
        set in interface CertAttrSet
        Parameters:
        name - the name of the attribute (e.g. "x509.info.key")
        obj - the attribute object.
        Throws:
        java.security.cert.CertificateException - on attribute handling errors.
      • get

        public java.lang.Object get​(java.lang.String name)
                             throws java.security.cert.CertificateException
        Retrieves extension attribute.
        Specified by:
        get in interface CertAttrSet
        Parameters:
        name - the name of the attribute to return.
        Throws:
        java.security.cert.CertificateException - on attribute handling errors.
      • delete

        public void delete​(java.lang.String name)
                    throws java.security.cert.CertificateException
        Deletes attribute.
        Specified by:
        delete in interface CertAttrSet
        Parameters:
        name - the name of the attribute to delete.
        Throws:
        java.security.cert.CertificateException - on attribute handling errors.
      • decode

        public void decode​(java.io.InputStream in)
                    throws java.io.IOException
        Decodes this extension.
        Specified by:
        decode in interface CertAttrSet
        Parameters:
        in - the InputStream to read the encoded attribute from.
        Throws:
        java.io.IOException - on other errors.
      • getAttributeNames

        public java.util.Enumeration<java.lang.String> getAttributeNames()
        Return an enumeration of names of attributes existing within this attribute.
        Specified by:
        getAttributeNames in interface CertAttrSet
        Returns:
        an enumeration of the attribute names.
      • getName

        public java.lang.String getName()
        Return the name of this attribute.
        Specified by:
        getName in interface CertAttrSet
        Returns:
        the name of this CertAttrSet.
      • numberOfAccessDescription

        public int numberOfAccessDescription()
        Returns the number of access description.
      • encode

        public void encode​(java.io.OutputStream out)
                    throws java.io.IOException
        Write the extension to the DerOutputStream.
        Specified by:
        encode in interface CertAttrSet
        Parameters:
        out - the DerOutputStream to write the extension to.
        Throws:
        java.io.IOException - on encoding errors.
      • toString

        public java.lang.String toString()
        Returns a printable representation of the AuthInfoAccess.
        Specified by:
        toString in interface CertAttrSet
        Overrides:
        toString in class Extension
        Returns:
        value of this certificate attribute in printable form.
      • main

        public static void main​(java.lang.String[] argv)