Oracle Security Developer Tools Security Engine Java API Reference
10g Release 2 (10.1.2.0.2)

B15569-01


oracle.security.crypto.cert
Class GeneralName

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


public class GeneralName
extends java.lang.Object

The X.509 GeneralName type, as defined in RFC 2459.


Nested Class Summary
static class GeneralName.Type
The underlying name type of a GeneralName.

Constructor Summary
GeneralName(GeneralName.Type type, ASN1Object value)
GeneralName(java.io.InputStream is)
GeneralName(X500Name value)

Method Summary
boolean equals(java.lang.Object obj)
Indicates whether or not the given object is equal to this GeneralName object.
GeneralName.Type getType()
ASN1Object getValue()
void input(java.io.InputStream is)
int length()
void output(java.io.OutputStream os)
java.lang.String toString()
Returns the string representation of the underlying name as returned by that type's toString() method.

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

Constructor Detail

GeneralName

public GeneralName(GeneralName.Type type,
                   ASN1Object value)

GeneralName

public GeneralName(X500Name value)

GeneralName

public GeneralName(java.io.InputStream is)
            throws java.io.IOException

Method Detail

getType

public GeneralName.Type getType()

getValue

public ASN1Object getValue()

equals

public boolean equals(java.lang.Object obj)
Indicates whether or not the given object is equal to this GeneralName object.
Returns:
true if
  1. obj is a GeneralName with type and value equal to this object's; OR
  2. obj is an ASN1Object equal to this object's value;
otherwise false.

toString

public java.lang.String toString()
Returns the string representation of the underlying name as returned by that type's toString() method.

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Throws:
java.io.IOException

length

public int length()

Oracle Security Developer Tools Security Engine Java API Reference
10g Release 2 (10.1.2.0.2)

B15569-01


Copyright © 2005 , Oracle. All rights reserved.