|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.gsi.X509Extension
public class X509Extension
Represents an X.509 extension. It is used to create X.509 extensions and pass them in a map during certificate generation.
| Field Summary | |
|---|---|
protected boolean |
critical
|
protected java.lang.String |
oid
|
protected byte[] |
value
|
| Constructor Summary | |
|---|---|
X509Extension(java.lang.String oid)
Creates a X509Extension object with specified oid. |
|
X509Extension(java.lang.String oid,
boolean critical,
byte[] value)
Creates a X509Extension object with specified oid, critical property, and value. |
|
X509Extension(java.lang.String oid,
byte[] value)
Creates a X509Extension object with specified oid and value. |
|
| Method Summary | |
|---|---|
java.lang.String |
getOid()
Returns the oid of this extension. |
byte[] |
getValue()
Returns the actual value of the extension (not octet string encoded) |
boolean |
isCritical()
Determines whether or not this extension is critical. |
void |
setCritical(boolean critical)
Sets the extension as critical or noncritical. |
void |
setOid(java.lang.String oid)
Sets the oid of this extension. |
void |
setValue(byte[] value)
Sets the actual value of the extension (not octet string encoded). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean critical
protected byte[] value
protected java.lang.String oid
| Constructor Detail |
|---|
public X509Extension(java.lang.String oid)
oid - the oid of the extension
public X509Extension(java.lang.String oid,
byte[] value)
oid - the oid of the extensionvalue - the actual value of the extension (not octet string
encoded). The value can be null.
public X509Extension(java.lang.String oid,
boolean critical,
byte[] value)
oid - the oid of the extensioncritical - the critical value.value - the actual value of the extension (not octet string
encoded). The value can be null.| Method Detail |
|---|
public void setOid(java.lang.String oid)
oid - the oid of this extension. Cannot not null.public java.lang.String getOid()
public void setCritical(boolean critical)
critical - the critical value.public boolean isCritical()
public void setValue(byte[] value)
value - the actual value of the extension. Can be null.public byte[] getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||