| |
|
| java.lang.Object com.sun.jbi.security.X500PrincipalWrapper
All known Subclasses: com.sun.jbi.security.MsgSignerPrincipal, com.sun.jbi.security.SSLClientPrincipal,
X500PrincipalWrapper | class X500PrincipalWrapper implements java.security.Principal(Code) | | This is a wrapper around X500 Principal, since X500 Principal cannot be extended.
author: Sun Microsystems, Inc. |
Method Summary | |
public boolean | equals(Object o) Compares the specified Object with this X500Principal for equality. | public byte[] | getEncoded() Returns the distinguished name in ASN.1 DER encoded form. | public String | getName() | public String | getName(String format) Returns a string representation of the X.500 distinguished name using the
specified format. | public int | hashCode() Return a hash code for this X500Principal. |
mX500Principal | protected X500Principal mX500Principal(Code) | | The actual X500 Principal Implementation.
|
X500PrincipalWrapper | public X500PrincipalWrapper(byte[] name)(Code) | | Creates a new instance of SSLClientPrincipal
Parameters: name - a byte array containing the distinguished name in ASN.1 DERencoded form. See Also: javax.security.auth.x500.X500Principal |
equals | public boolean equals(Object o)(Code) | | Compares the specified Object with this X500Principal for equality.
Specifically, this method returns true if the Object o is an X500Principal
and if the respective canonical string representations (obtained via the
getName(X500Principal.CANONICAL) method) of this object and o are equal.
Parameters: o - obj to check for comparison true if the specified Object is equal to this X500Principal,false otherwise |
getEncoded | public byte[] getEncoded()(Code) | | Returns the distinguished name in ASN.1 DER encoded form. The ASN.1 notation for
this structure is supplied in the documentation for X500Principal(byte[] name).
the distinguished name in ASN.1 DER encoded form |
getName | public String getName()(Code) | | a string representation of the X.500 distinguished nameusing the format defined in RFC 2253. |
getName | public String getName(String format)(Code) | | Returns a string representation of the X.500 distinguished name using the
specified format. The acceptable formats are
javax.security.auth.x500.X500Principal.CANONICAL,
javax.security.auth.x500.X500Principal.RFC2253 ans
javax.security.auth.x500.X500Principal.RFC1779.
Parameters: format - the naming format. a string representation of the X.500 distinguished name using thespecified format. See Also: javax.security.auth.x500.X500Principal.getName(String format) |
hashCode | public int hashCode()(Code) | | Return a hash code for this X500Principal.
The hash code is calculated via: getName(X500Principal.CANONICAL).hashCode()
a hash code for this X500Principal. |
|
|
|