Class ExtendedKeyUsageExtension

    • Field Detail

      • OID_OCSP_SIGNING_STR

        public static final int[] OID_OCSP_SIGNING_STR
      • OID_CODE_SIGNING_STR

        public static final int[] OID_CODE_SIGNING_STR
    • Constructor Detail

      • ExtendedKeyUsageExtension

        public ExtendedKeyUsageExtension()
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • ExtendedKeyUsageExtension

        public ExtendedKeyUsageExtension​(boolean crit,
                                         java.util.Vector<ObjectIdentifier> oids)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • ExtendedKeyUsageExtension

        public ExtendedKeyUsageExtension​(java.lang.Boolean crit,
                                         java.lang.Object byteVal)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • setCritical

        public void setCritical​(boolean newValue)
        Overrides:
        setCritical in class Extension
      • deleteAllOIDs

        public void deleteAllOIDs()
      • encode

        public void encode​(DerOutputStream out)
                    throws java.io.IOException
        Description copied from class: Extension
        Write the extension to the DerOutputStream.
        Overrides:
        encode in class Extension
        Parameters:
        out - the DerOutputStream to write the extension to.
        Throws:
        java.io.IOException - on encoding errors
      • toString

        public java.lang.String toString()
        Description copied from class: Extension
        Returns the Extension in user readable form.
        Specified by:
        toString in interface CertAttrSet
        Overrides:
        toString in class Extension
        Returns:
        value of this certificate attribute in printable form.
      • decode

        public void decode​(java.io.InputStream in)
                    throws java.security.cert.CertificateException,
                           java.io.IOException
        Description copied from interface: CertAttrSet
        Decodes the attribute in the input stream.
        Specified by:
        decode in interface CertAttrSet
        Parameters:
        in - the InputStream to read the encoded attribute from.
        Throws:
        java.security.cert.CertificateException - on decoding or validity errors.
        java.io.IOException - on other errors.
      • encode

        public void encode​(java.io.OutputStream out)
                    throws java.security.cert.CertificateException,
                           java.io.IOException
        Description copied from interface: CertAttrSet
        Encodes the attribute to the output stream in a format that can be parsed by the decode method.
        Specified by:
        encode in interface CertAttrSet
        Parameters:
        out - the OutputStream to encode the attribute to.
        Throws:
        java.security.cert.CertificateException - on encoding or validity errors.
        java.io.IOException - on other errors.
      • set

        public void set​(java.lang.String name,
                        java.lang.Object obj)
                 throws java.security.cert.CertificateException,
                        java.io.IOException
        Description copied from interface: CertAttrSet
        Sets an attribute value within this CertAttrSet.
        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.
        java.io.IOException - on other errors.
      • get

        public java.lang.Object get​(java.lang.String name)
                             throws java.security.cert.CertificateException,
                                    java.io.IOException
        Description copied from interface: CertAttrSet
        Gets an attribute value for this CertAttrSet.
        Specified by:
        get in interface CertAttrSet
        Parameters:
        name - the name of the attribute to return.
        Throws:
        java.security.cert.CertificateException - on attribute handling errors.
        java.io.IOException - on other errors.
      • getAttributeNames

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

        public java.lang.String getName()
        Description copied from interface: CertAttrSet
        Returns the name (identifier) of this CertAttrSet.
        Specified by:
        getName in interface CertAttrSet
        Returns:
        the name of this CertAttrSet.
      • delete

        public void delete​(java.lang.String name)
                    throws java.security.cert.CertificateException,
                           java.io.IOException
        Description copied from interface: CertAttrSet
        Deletes an attribute value from this CertAttrSet.
        Specified by:
        delete in interface CertAttrSet
        Parameters:
        name - the name of the attribute to delete.
        Throws:
        java.security.cert.CertificateException - on attribute handling errors.
        java.io.IOException - on other errors.