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.
-
DirectoryNameT
- These integers are the tag values for each name encoding.
-
DnsNameT
- These integers are the tag values for each name encoding.
-
EDIPartyNameT
- These integers are the tag values for each name encoding.
-
IPAddressT
- These integers are the tag values for each name encoding.
-
IPPortNumberT
- These integers are the tag values for each name encoding.
-
KerberosNameT
- These integers are the tag values for each name encoding.
-
OtherNameT
- These integers are the tag values for each name encoding.
-
PrintableStringT
- These integers are the tag values for each name encoding.
-
RegisteredIDT
- These integers are the tag values for each name encoding.
-
Rfc822NameT
- These integers are the tag values for each name encoding.
-
type
- This attribute contains the type tag for the name.
-
UniformResourceIdentifierT
- These integers are the tag values for each name encoding.
-
X400AddressT
- These integers are the tag values for each name encoding.
-
Opaque()
- Default constructor (empty) for JDK 1.2 compatability
-
decode(byte[])
- This method decodes the data in either the security attribute
or the security name.
-
encode(String, int)
-
-
encode(String, Object)
- This method decodes the data in either the security attribute
or the security name.
-
encode(String, short)
-
-
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.
-
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.
-
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.
-
encodeIPAddress(byte[])
- This method creates a Name object using the given string
that represents the IP Address.
-
encodeIPAddress(String)
- This method creates a Opaque object using the given string
that represents the IP Address.
-
encodeIPPortNumber(int)
- This method creates a Opaque object using the given integer
that represents the IP Port.
-
encodeIPPortNumber(short)
- This method creates a Opaque object using the given integer
that represents the IP Port.
-
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.
-
encodeOtherName(byte[])
- This method makes a Opaque from the raw data bytes.
-
encodePrintableString(String)
- This method creates a Opaque object using the given string
that represents a printable string type name.
-
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.
-
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.
-
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.
-
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.
-
getEncoding()
- This method encodes the name into a byte array that this
name structure can also decode.
-
getRawBytes()
- This method returns the raw form in bytes of the data without
the encoding tags.
-
registerASN1Provider(ASN1Provider)
- This method registers an ASN1Provider that can decode
ASN1-DER X.500 Directory Names.
OtherNameT
public static final int OtherNameT
- These integers are the tag values for each name encoding.
Rfc822NameT
public static final int Rfc822NameT
- These integers are the tag values for each name encoding.
DnsNameT
public static final int DnsNameT
- These integers are the tag values for each name encoding.
X400AddressT
public static final int X400AddressT
- These integers are the tag values for each name encoding.
DirectoryNameT
public static final int DirectoryNameT
- These integers are the tag values for each name encoding.
EDIPartyNameT
public static final int EDIPartyNameT
- These integers are the tag values for each name encoding.
UniformResourceIdentifierT
public static final int UniformResourceIdentifierT
- These integers are the tag values for each name encoding.
IPAddressT
public static final int IPAddressT
- These integers are the tag values for each name encoding.
RegisteredIDT
public static final int RegisteredIDT
- These integers are the tag values for each name encoding.
KerberosNameT
public static final int KerberosNameT
- These integers are the tag values for each name encoding.
PrintableStringT
public static final int PrintableStringT
- These integers are the tag values for each name encoding.
IPPortNumberT
public static final int IPPortNumberT
- These integers are the tag values for each name encoding.
type
public int type
- This attribute contains the type tag for the name.
Opaque
protected Opaque()
- Default constructor (empty) for JDK 1.2 compatability
getEncoding
public abstract byte[] getEncoding()
- This method encodes the name into a byte array that this
name structure can also decode.
getRawBytes
public abstract byte[] getRawBytes()
- This method returns the raw form in bytes of the data without
the encoding tags.
registerASN1Provider
public static final void registerASN1Provider(ASN1Provider p)
- This method registers an ASN1Provider that can decode
ASN1-DER X.500 Directory Names.
encodeOtherName
public static Opaque encodeOtherName(byte data[])
- This method makes a Opaque from the raw data bytes.
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.
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.
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.
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.
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.
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.
encodeIPAddress
public static Opaque encodeIPAddress(byte addr[])
- This method creates a Name object using the given string
that represents the IP Address.
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
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.
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).
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.
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.
encodePrintableString
public static Opaque encodePrintableString(String name)
- This method creates a Opaque object using the given string
that represents a printable string type name.
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
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
encode
public static Opaque encode(String type,
int d) throws Opaque. CodingException
encode
public static Opaque encode(String type,
short d) throws Opaque. CodingException
All Packages Class Hierarchy This Package Previous Next Index