Skip navigation links

Oracle Security Developer Tools Security Engine Java API Reference
11g (11.1.1)

E10674-02


oracle.security.crypto.cert
Class AuthorityInfoAccess

java.lang.Object
  extended by oracle.security.crypto.cert.AuthorityInfoAccess

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class AuthorityInfoAccess
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object, java.io.Externalizable

The AuthorityInfoAccessSyntax structure from RFC 2459, used in the certificate extension AuthorityInfoAccess and in the OCSP (RFC 2560) extension ServiceLocator.

See Also:
Serialized Form

Constructor Summary
AuthorityInfoAccess()
          Creates a new empty AuthorityInfoAccess.
AuthorityInfoAccess(java.io.InputStream is)
          Creates a new AuthorityInfoAccess from the given input stream.

 

Method Summary
 java.util.Enumeration accessMethods()
          Gets the defined access method OIDs.
 void addAccessDescription(oracle.security.crypto.asn1.ASN1ObjectID method, GeneralName location)
          Add the given access description to this AuthorityInfoAccess.
 java.util.Vector getAccessDescriptions(oracle.security.crypto.asn1.ASN1ObjectID method)
          Get the access location(s) for the given access method.
 boolean hasAccessMethod(oracle.security.crypto.asn1.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)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

AuthorityInfoAccess

public AuthorityInfoAccess()
Creates a new empty AuthorityInfoAccess.

AuthorityInfoAccess

public AuthorityInfoAccess(java.io.InputStream is)
                    throws java.io.IOException
Creates a new AuthorityInfoAccess from the given input stream.
Throws:
java.io.IOException

Method Detail

addAccessDescription

public void addAccessDescription(oracle.security.crypto.asn1.ASN1ObjectID method,
                                 GeneralName location)
Add the given access description to this AuthorityInfoAccess.
Parameters:
method - The OID of the access method.
location - A GeneralName describing the access location.

accessMethods

public java.util.Enumeration accessMethods()
Gets the defined access method OIDs.
Returns:
An Enumeration of ASN1ObjectIDs.

getAccessDescriptions

public java.util.Vector getAccessDescriptions(oracle.security.crypto.asn1.ASN1ObjectID method)
Get the access location(s) for the given access method.
Parameters:
method - The OID of the access method.
Returns:
A Vector of GeneralName, or null if no locations are defined for the method.

hasAccessMethod

public boolean hasAccessMethod(oracle.security.crypto.asn1.ASN1ObjectID method)
Returns true if one or more access descriptions are defined for the given method OID, otherwise returns false.

methodCount

public int methodCount()
Returns the number of access methods defined in this AuthorityAccessInfo.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Reads an AuthorityInfoAccess from the given input stream.
Specified by:
input in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Specified by:
output in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

length

public int length()
Specified by:
length in interface oracle.security.crypto.util.Streamable

writeExternal

public void writeExternal(java.io.ObjectOutput os)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput is)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

Skip navigation links

Oracle Security Developer Tools Security Engine Java API Reference
11g (11.1.1)

E10674-02


Copyright © 2005, 2009, Oracle. All rights reserved.