All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class orbasec.corba.Opaque

java.lang.Object
   |
   +----orbasec.corba.Opaque

public abstract class Opaque
extends Object
This class contains a number of encoding and decoding rules for names used the Principal Authenticator and Security Attributes. ORBAsec SL2 uses these names structures to hide the encodings (which are unfortunately, not standardized) for names found in the SecurityLevel 1 and 2 API, such as the security_name parameters used in the PrincipalAuthenticator (and the Vault), and the identity type security attributes, namely the one used for Corba Family 1 AccessId and others. ORBAsec SL2 requires each Vault implementor to encode the appropriate values for security attributes and the security names using the encoding presented here, so that a common interface can be used to compare names and translate them to printable strings, if possible. ORBAsec SL2 requires application developers to encode their security names using these definitions before encoding them to sequences of bytes.


Variable Index

 o DirectoryNameT
These integers are the tag values for each name encoding.
 o DnsNameT
These integers are the tag values for each name encoding.
 o EDIPartyNameT
These integers are the tag values for each name encoding.
 o IPAddressT
These integers are the tag values for each name encoding.
 o IPPortNumberT
These integers are the tag values for each name encoding.
 o KerberosNameT
These integers are the tag values for each name encoding.
 o OtherNameT
These integers are the tag values for each name encoding.
 o PrintableStringT
These integers are the tag values for each name encoding.
 o RegisteredIDT
These integers are the tag values for each name encoding.
 o Rfc822NameT
These integers are the tag values for each name encoding.
 o type
This attribute contains the type tag for the name.
 o UniformResourceIdentifierT
These integers are the tag values for each name encoding.
 o X400AddressT
These integers are the tag values for each name encoding.

Constructor Index

 o Opaque()
Default constructor (empty) for JDK 1.2 compatability

Method Index

 o decode(byte[])
This method decodes the data in either the security attribute or the security name.
 o encode(String, int)
 o encode(String, Object)
This method decodes the data in either the security attribute or the security name.
 o encode(String, short)
 o encodeDirectoryName(byte[])
This method creates a Opaque object using the given ASN1-DER byte encoding that represents the X.500 Directory Name type name.

Note, this method only works if we have an ASN1 Provider.

 o encodeDnsName(String)
This method creates a Opaque object using the given string that represents the DNS type name.

Note, there currently is no format enforcement or checking.

 o encodeEDIPartyName(byte[])
This method creates a Opaque object using the given string that represents the EDIParty Name type name.

Note, there currently is no format enforcement or checking.

 o encodeIPAddress(byte[])
This method creates a Name object using the given string that represents the IP Address.

 o encodeIPAddress(String)
This method creates a Opaque object using the given string that represents the IP Address.
 o encodeIPPortNumber(int)
This method creates a Opaque object using the given integer that represents the IP Port.
 o encodeIPPortNumber(short)
This method creates a Opaque object using the given integer that represents the IP Port.
 o encodeKerberosName(String)
This method creates a Opaque object using the given string that represents the Kerberos name.

Note, there currently is no format enforcement or checking.

 o encodeOtherName(byte[])
This method makes a Opaque from the raw data bytes.
 o encodePrintableString(String)
This method creates a Opaque object using the given string that represents a printable string type name.

 o encodeRegisterdID(byte[])
This method creates a Opaque object using the given string that represents the RegieterdID (OID) type name.

Note, there currently is no format enforcement or checking.

 o encodeRfc822Name(String)
This method creates a Opaque object using the given string that represents the RFC822 (Email) type name.

Note, there currently is no format enforcement or checking.

 o encodeUniformResourceIdentifier(String)
This method creates a Opaque object using the given string that represents the URI type name.

Note, there currently is no format enforcement or checking.

 o encodeX400Address(String)
This method creates a Opaque object using the given string that represents the X.400 Email address type name.

Note, there currently is no format enforcement or checking.

 o getEncoding()
This method encodes the name into a byte array that this name structure can also decode.
 o getRawBytes()
This method returns the raw form in bytes of the data without the encoding tags.
 o registerASN1Provider(ASN1Provider)
This method registers an ASN1Provider that can decode ASN1-DER X.500 Directory Names.

Variables

 o OtherNameT
 public static final int OtherNameT
These integers are the tag values for each name encoding.

 o Rfc822NameT
 public static final int Rfc822NameT
These integers are the tag values for each name encoding.

 o DnsNameT
 public static final int DnsNameT
These integers are the tag values for each name encoding.

 o X400AddressT
 public static final int X400AddressT
These integers are the tag values for each name encoding.

 o DirectoryNameT
 public static final int DirectoryNameT
These integers are the tag values for each name encoding.

 o EDIPartyNameT
 public static final int EDIPartyNameT
These integers are the tag values for each name encoding.

 o UniformResourceIdentifierT
 public static final int UniformResourceIdentifierT
These integers are the tag values for each name encoding.

 o IPAddressT
 public static final int IPAddressT
These integers are the tag values for each name encoding.

 o RegisteredIDT
 public static final int RegisteredIDT
These integers are the tag values for each name encoding.

 o KerberosNameT
 public static final int KerberosNameT
These integers are the tag values for each name encoding.

 o PrintableStringT
 public static final int PrintableStringT
These integers are the tag values for each name encoding.

 o IPPortNumberT
 public static final int IPPortNumberT
These integers are the tag values for each name encoding.

 o type
 public int type
This attribute contains the type tag for the name.

Constructors

 o Opaque
 protected Opaque()
Default constructor (empty) for JDK 1.2 compatability

Methods

 o getEncoding
 public abstract byte[] getEncoding()
This method encodes the name into a byte array that this name structure can also decode.

 o getRawBytes
 public abstract byte[] getRawBytes()
This method returns the raw form in bytes of the data without the encoding tags.

 o registerASN1Provider
 public static final void registerASN1Provider(ASN1Provider p)
This method registers an ASN1Provider that can decode ASN1-DER X.500 Directory Names.

 o encodeOtherName
 public static Opaque encodeOtherName(byte data[])
This method makes a Opaque from the raw data bytes.

 o encodeRfc822Name
 public static Opaque encodeRfc822Name(String name)
This method creates a Opaque object using the given string that represents the RFC822 (Email) type name.

Note, there currently is no format enforcement or checking.

 o encodeDnsName
 public static Opaque encodeDnsName(String name)
This method creates a Opaque object using the given string that represents the DNS type name.

Note, there currently is no format enforcement or checking.

 o encodeX400Address
 public static Opaque encodeX400Address(String name)
This method creates a Opaque object using the given string that represents the X.400 Email address type name.

Note, there currently is no format enforcement or checking.

 o encodeDirectoryName
 public static Opaque encodeDirectoryName(byte name[])
This method creates a Opaque object using the given ASN1-DER byte encoding that represents the X.500 Directory Name type name.

Note, this method only works if we have an ASN1 Provider.

 o encodeEDIPartyName
 public static Opaque encodeEDIPartyName(byte name[])
This method creates a Opaque object using the given string that represents the EDIParty Name type name.

Note, there currently is no format enforcement or checking.

Note, this method is not yet implemented.

 o encodeUniformResourceIdentifier
 public static Opaque encodeUniformResourceIdentifier(String name)
This method creates a Opaque object using the given string that represents the URI type name.

Note, there currently is no format enforcement or checking.

 o encodeIPAddress
 public static Opaque encodeIPAddress(byte addr[])
This method creates a Name object using the given string that represents the IP Address.

 o encodeIPAddress
 public static Opaque encodeIPAddress(String addr)
This method creates a Opaque object using the given string that represents the IP Address. The number should be in the form of numbers 0 to 255 separated by periods(.), e.g. 255.255.255.255

 o encodeIPPortNumber
 public static Opaque encodeIPPortNumber(int port)
This method creates a Opaque object using the given integer that represents the IP Port. The number should be between 0 and 65535.

 o encodeIPPortNumber
 public static Opaque encodeIPPortNumber(short port)
This method creates a Opaque object using the given integer that represents the IP Port. The number should be between 0 and 65535 (unsigned).

 o encodeRegisterdID
 public static Opaque encodeRegisterdID(byte name[])
This method creates a Opaque object using the given string that represents the RegieterdID (OID) type name.

Note, there currently is no format enforcement or checking.

Note, this method is not yet implemented.

 o encodeKerberosName
 public static Opaque encodeKerberosName(String name)
This method creates a Opaque object using the given string that represents the Kerberos name.

Note, there currently is no format enforcement or checking.

 o encodePrintableString
 public static Opaque encodePrintableString(String name)
This method creates a Opaque object using the given string that represents a printable string type name.

 o decode
 public static Opaque decode(byte data[]) throws Opaque. CodingException
This method decodes the data in either the security attribute or the security name. The given parameter must be a Opaque encoded value.

Throws: Opaque. CodingException
if the data is not in an expected format
 o encode
 public static Opaque encode(String type,
                             Object d) throws Opaque. CodingException
This method decodes the data in either the security attribute or the security name. The given parameter must be a Opaque encoded value.

Throws: Opaque. CodingException
if the data is not in an expected format
 o encode
 public static Opaque encode(String type,
                             int d) throws Opaque. CodingException
 o encode
 public static Opaque encode(String type,
                             short d) throws Opaque. CodingException

All Packages  Class Hierarchy  This Package  Previous  Next  Index