public class AuthInfoAccessExtension extends Extension implements CertAttrSet
Modifier and Type | Field and Description |
---|---|
static ObjectIdentifier |
ID |
static ObjectIdentifier |
METHOD_CA_ISSUERS |
static ObjectIdentifier |
METHOD_OCSP |
static java.lang.String |
NAME |
static java.lang.String |
NAME2 |
static int[] |
OID |
static int[] |
OID_CA_ISSUERS |
static int[] |
OID_OCSP |
critical, extensionId, extensionValue
Constructor and Description |
---|
AuthInfoAccessExtension(boolean critical)
Create the extension from the passed DER encoded value of the same.
|
AuthInfoAccessExtension(java.lang.Boolean critical,
java.lang.Object value)
Create the extension from the passed DER encoded value of the same.
|
Modifier and Type | Method and Description |
---|---|
void |
addAccessDescription(ObjectIdentifier method,
GeneralName gn)
Adds Access Description.
|
void |
decode(java.io.InputStream in)
Decodes this extension.
|
void |
delete(java.lang.String name)
Deletes attribute.
|
void |
encode(java.io.OutputStream out)
Write the extension to the DerOutputStream.
|
java.lang.Object |
get(java.lang.String name)
Retrieves extension attribute.
|
AccessDescription |
getAccessDescription(int pos) |
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Return an enumeration of names of attributes existing within this
attribute.
|
java.lang.String |
getName()
Return the name of this attribute.
|
static void |
main(java.lang.String[] argv) |
int |
numberOfAccessDescription()
Returns the number of access description.
|
void |
set(java.lang.String name,
java.lang.Object obj)
Sets extension attribute.
|
java.lang.String |
toString()
Returns a printable representation of the AuthInfoAccess.
|
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setCritical, setExtensionId, setExtensionValue
public static final java.lang.String NAME
public static final java.lang.String NAME2
public static final int[] OID_OCSP
public static final ObjectIdentifier METHOD_OCSP
public static final int[] OID_CA_ISSUERS
public static final ObjectIdentifier METHOD_CA_ISSUERS
public static final int[] OID
public static final ObjectIdentifier ID
public AuthInfoAccessExtension(boolean critical)
critical
- true if the extension is to be treated as critical.public AuthInfoAccessExtension(java.lang.Boolean critical, java.lang.Object value) throws java.io.IOException
critical
- true if the extension is to be treated as critical.value
- Array of DER encoded bytes of the actual value.java.io.IOException
- on error.public void set(java.lang.String name, java.lang.Object obj) throws java.security.cert.CertificateException
set
in interface CertAttrSet
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.java.security.cert.CertificateException
- on attribute handling errors.public java.lang.Object get(java.lang.String name) throws java.security.cert.CertificateException
get
in interface CertAttrSet
name
- the name of the attribute to return.java.security.cert.CertificateException
- on attribute handling errors.public void delete(java.lang.String name) throws java.security.cert.CertificateException
delete
in interface CertAttrSet
name
- the name of the attribute to delete.java.security.cert.CertificateException
- on attribute handling errors.public void decode(java.io.InputStream in) throws java.io.IOException
decode
in interface CertAttrSet
in
- the InputStream to read the encoded attribute from.java.io.IOException
- on other errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames
in interface CertAttrSet
public java.lang.String getName()
getName
in interface CertAttrSet
public void addAccessDescription(ObjectIdentifier method, GeneralName gn)
public AccessDescription getAccessDescription(int pos)
public int numberOfAccessDescription()
public void encode(java.io.OutputStream out) throws java.io.IOException
encode
in interface CertAttrSet
out
- the DerOutputStream to write the extension to.java.io.IOException
- on encoding errors.public java.lang.String toString()
toString
in interface CertAttrSet
toString
in class Extension
public static void main(java.lang.String[] argv)