Class CertificateScopeOfUseExtension

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

    public class CertificateScopeOfUseExtension
    extends Extension
    implements CertAttrSet
    This represents the CertificateScopeOfUse extension as defined in draft-thayes-cert-scope-00 CertificateScopeEntry ::= SEQUENCE { name GeneralName, -- pattern, as for NameConstraints portNumber INTEGER OPTIONAL } CertificateScopeOfUse ::= SEQUENCE OF CertificateScopeEntry
    See Also:
    Serialized Form
    • Constructor Detail

      • CertificateScopeOfUseExtension

        public CertificateScopeOfUseExtension​(boolean critical,
                                              java.util.Vector<CertificateScopeEntry> scopeEntries)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • CertificateScopeOfUseExtension

        public CertificateScopeOfUseExtension​(boolean critical)
      • CertificateScopeOfUseExtension

        public CertificateScopeOfUseExtension​(java.lang.Boolean critical,
                                              java.lang.Object value)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • 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.
      • getCertificateScopeEntries

        public java.util.Vector<CertificateScopeEntry> getCertificateScopeEntries()
      • 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.
      • 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 CertificateRenewalWindow.
        Specified by:
        toString in interface CertAttrSet
        Overrides:
        toString in class Extension
        Returns:
        value of this certificate attribute in printable form.