Oracle Security Developer Tools Security Engine Java API Reference
10g (10.1.4.0.1)

B28175-01


oracle.security.crypto.cert
Class AuthorityInfoAccess

java.lang.Object
  extended byoracle.security.crypto.cert.AuthorityInfoAccess

All Implemented Interfaces:
oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

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

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


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)
           
 java.lang.String toString()
           

 

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.

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 GeneralNames, 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()

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

Oracle Security Developer Tools Security Engine Java API Reference
10g (10.1.4.0.1)

B28175-01


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