|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cert.X509Extension
oracle.security.crypto.cert.ext.NameConstraintsExtension
public class NameConstraintsExtension
Represents the certificate extension Name Constraints from RFC 2459. This extension must be critical in CA certificates.
Note that this implementation always sets the minimum subtree base distance to 0
(the default) and always omits the maximum.
Field Summary |
---|
Fields inherited from class oracle.security.crypto.cert.X509Extension |
---|
id_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded |
Constructor Summary | |
---|---|
NameConstraintsExtension() Create a new extension with the appropriate OID type. |
|
NameConstraintsExtension(java.io.InputStream is) |
|
NameConstraintsExtension(java.util.List<GeneralName> permitted, java.util.List<GeneralName> excluded) Creates a new extension with the given permitted and/or excluded subtree lists. |
|
NameConstraintsExtension(java.util.List<GeneralName> permitted, java.util.List<GeneralName> excluded, boolean critical) Creates a new extension with the given permitted and/or excluded subtree lists and critical flag. |
|
NameConstraintsExtension(java.util.Vector<GeneralName> permitted, java.util.Vector<GeneralName> excluded) Deprecated. Use NameConstraintsExtension(List, List) |
|
NameConstraintsExtension(java.util.Vector<GeneralName> permitted, java.util.Vector<GeneralName> excluded, boolean critical) Deprecated. Use NameConstraintsExtension(List, List, boolean) |
Method Summary | |
---|---|
void |
addExcludedSubtree(GeneralName name) |
void |
addPermittedSubtree(GeneralName name) |
java.util.Vector<GeneralName> |
getExcludedSubtrees() Deprecated. getExcludedSubtreesAsList() |
java.util.ArrayList<GeneralName> |
getExcludedSubtreesAsList() Gets the excluded subtrees defined for this extension. |
java.util.Vector<GeneralName> |
getPermittedSubtrees() Deprecated. Use getPermittedSubtreesAsList() |
java.util.ArrayList<GeneralName> |
getPermittedSubtreesAsList() Gets the permitted subtrees defined for this extension. |
java.lang.String |
toString() Returns a string representation of this object. |
Methods inherited from class oracle.security.crypto.cert.X509Extension |
---|
getCritical, getType, getValue, input, inputInstance, isRecognized, length, output, readExternal, setCritical, setValue, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NameConstraintsExtension()
Note: An object created using this constructor may not be in a valid state. This constructor is intended primarily for use in conjunction with the X509Extension.input(java.io.InputStream)
method.
public NameConstraintsExtension(java.util.Vector<GeneralName> permitted, java.util.Vector<GeneralName> excluded)
NameConstraintsExtension(List, List)
permitted
- A Vector
of GeneralNames
which are the permitted subtrees for this Name Constraints extension (may be null
).excluded
- A Vector
of GeneralNames
which are the excluded subtrees for this Name Constraints extension (may be null
).public NameConstraintsExtension(java.util.List<GeneralName> permitted, java.util.List<GeneralName> excluded)
permitted
- A List
of GeneralNames
which are the permitted subtrees for this Name Constraints extension (may be null
).excluded
- A List
of GeneralNames
which are the excluded subtrees for this Name Constraints extension (may be null
).public NameConstraintsExtension(java.util.Vector<GeneralName> permitted, java.util.Vector<GeneralName> excluded, boolean critical)
NameConstraintsExtension(List, List, boolean)
permitted
- A Vector
of GeneralNames
which are the permitted subtrees for this Name Constraints extension (may be null
).excluded
- A Vector
of GeneralNames
which are the excluded subtrees for this Name Constraints extension (may be null
).critical
- true
if this extension is critical, false
otherwise.public NameConstraintsExtension(java.util.List<GeneralName> permitted, java.util.List<GeneralName> excluded, boolean critical)
permitted
- A List
of GeneralNames
which are the permitted subtrees for this Name Constraints extension (may be null
).excluded
- A List
of GeneralNames
which are the excluded subtrees for this Name Constraints extension (may be null
).critical
- true
if this extension is critical, false
otherwise.public NameConstraintsExtension(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public java.util.Vector<GeneralName> getPermittedSubtrees()
getPermittedSubtreesAsList()
Vector
of GeneralName
s, or null
if none are defined.public java.util.ArrayList<GeneralName> getPermittedSubtreesAsList()
ArrayList
of GeneralName
s, or null
if none are defined.public java.util.Vector<GeneralName> getExcludedSubtrees()
getExcludedSubtreesAsList()
Vector
of GeneralName
s, or null
if none are defined.public java.util.ArrayList<GeneralName> getExcludedSubtreesAsList()
ArrayList
of GeneralName
s, or null
if none are defined.public void addPermittedSubtree(GeneralName name)
public void addExcludedSubtree(GeneralName name)
public java.lang.String toString()
X509Extension
toString
in class X509Extension
|
Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10674-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |