public class AuthorityInfoAccess
extends java.lang.Object
implements java.io.Externalizable
| Constructor and Description |
|---|
AuthorityInfoAccess()
Creates a new empty
AuthorityInfoAccess. |
AuthorityInfoAccess(java.io.InputStream is)
Creates a new
AuthorityInfoAccess from the given input
stream. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Enumeration<ASN1ObjectID> |
accessMethods()
Deprecated.
|
void |
addAccessDescription(ASN1ObjectID method,
GeneralName location)
Add the given access description to this
AuthorityInfoAccess. |
java.util.Vector<GeneralName> |
getAccessDescriptions(ASN1ObjectID method)
Deprecated.
|
java.util.ArrayList<GeneralName> |
getAccessDescriptionsAsList(ASN1ObjectID method) |
boolean |
hasAccessMethod(ASN1ObjectID method)
Returns
true if one or more access descriptions are
defined for the given method OID, otherwise returns false. |
void |
input(java.io.InputStream is)
Reads an
AuthorityInfoAccess from the given input stream. |
int |
length() |
int |
methodCount()
Returns the number of access methods defined in this
AuthorityAccessInfo. |
void |
output(java.io.OutputStream os) |
void |
readExternal(java.io.ObjectInput is) |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput os) |
public AuthorityInfoAccess()
AuthorityInfoAccess.public AuthorityInfoAccess(java.io.InputStream is)
throws java.io.IOException
AuthorityInfoAccess from the given input
stream.java.io.IOExceptionpublic void addAccessDescription(ASN1ObjectID method,
GeneralName location)
AuthorityInfoAccess.method - The OID of the access method.location - A GeneralName describing the access location.@Deprecated public java.util.Enumeration<ASN1ObjectID> accessMethods()
Enumeration of ASN1ObjectIDs.public java.util.Vector<GeneralName> getAccessDescriptions(ASN1ObjectID method)
getAccessDescriptionsAsList(ASN1ObjectID)method - The OID of the access method.Vector of GeneralName, or
null if no locations are defined for the method.public java.util.ArrayList<GeneralName> getAccessDescriptionsAsList(ASN1ObjectID method)
public boolean hasAccessMethod(ASN1ObjectID method)
true if one or more access descriptions are
defined for the given method OID, otherwise returns false.public int methodCount()
AuthorityAccessInfo.public java.lang.String toString()
toString in class java.lang.Objectpublic void input(java.io.InputStream is)
throws java.io.IOException
AuthorityInfoAccess from the given input stream.java.io.IOExceptionpublic void output(java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic int length()
public void writeExternal(java.io.ObjectOutput os)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput is)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOExceptionjava.lang.ClassNotFoundException