Class CertificateScopeOfUseExtension
java.lang.Object
org.mozilla.jss.netscape.security.x509.Extension
org.mozilla.jss.netscape.security.extensions.CertificateScopeOfUseExtension
- All Implemented Interfaces:
Serializable
,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
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectIdentifier
private Vector
<CertificateScopeEntry> static final String
static final int[]
private static final long
Fields inherited from class org.mozilla.jss.netscape.security.x509.Extension
critical, extensionId, extensionValue
-
Constructor Summary
ConstructorsConstructorDescriptionCertificateScopeOfUseExtension
(boolean critical) CertificateScopeOfUseExtension
(boolean critical, Vector<CertificateScopeEntry> scopeEntries) CertificateScopeOfUseExtension
(Boolean critical, Object value) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Return an enumeration of names of attributes existing within this attribute.getName()
Returns the name (identifier) of this CertAttrSet.void
Sets extension attribute.toString()
Returns a printable representation of the CertificateRenewalWindow.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:
-
OID
public static final int[] OID -
ID
-
mEntries
-
-
Constructor Details
-
CertificateScopeOfUseExtension
public CertificateScopeOfUseExtension(boolean critical, Vector<CertificateScopeEntry> scopeEntries) throws IOException - Throws:
IOException
-
CertificateScopeOfUseExtension
public CertificateScopeOfUseExtension(boolean critical) -
CertificateScopeOfUseExtension
- Throws:
IOException
-
-
Method Details
-
getName
Description copied from interface:CertAttrSet
Returns the name (identifier) of this CertAttrSet.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the name of this CertAttrSet.
-
getCertificateScopeEntries
-
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.
-
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 CertificateRenewalWindow.- Specified by:
toString
in interfaceCertAttrSet
- Overrides:
toString
in classExtension
- Returns:
- value of this certificate attribute in printable form.
-