|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.jgss.krb5.Krb5NameElement
public class Krb5NameElement
Implements the GSSNameSpi for the krb5 mechanism.
| Method Summary | |
|---|---|
boolean |
equals(GSSNameSpi other)
Equal method for the GSSNameSpi objects. |
boolean |
equals(Object another)
Compares this GSSNameSpi object to another Object
that might be a GSSNameSpi. |
byte[] |
export()
Returns the principal name in the form user@REALM or host/service@REALM but with the following contraints that are imposed by RFC 1964: |
Oid |
getGSSNameType()
Returns the name type oid. |
static Krb5NameElement |
getInstance(PrincipalName principalName)
|
static Krb5NameElement |
getInstance(String gssNameStr,
Oid gssNameType,
Config kerberosConfig)
Instantiates a new Krb5NameElement object. |
PrincipalName |
getKrb5PrincipalName()
|
Oid |
getMechanism()
Get the mechanism type that this NameElement corresponds to. |
Provider |
getProvider()
|
Oid |
getStringNameType()
Returns the oid describing the format of the printable name. |
int |
hashCode()
Returns a hashcode value for this GSSNameSpi. |
boolean |
isAnonymousName()
Indicates if this name object represents an Anonymous name. |
String |
toString()
Returns a string representation for this name. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Krb5NameElement getInstance(String gssNameStr,
Oid gssNameType,
Config kerberosConfig)
throws GSSException
GSSExceptionpublic static Krb5NameElement getInstance(PrincipalName principalName)
public final PrincipalName getKrb5PrincipalName()
public boolean equals(GSSNameSpi other)
throws GSSException
equals in interface GSSNameSpiname - to be compared with
GSSException - with major codes of BAD_NAMETYPE,
BAD_NAME, FAILUREpublic boolean equals(Object another)
GSSNameSpi object to another Object
that might be a GSSNameSpi. The behaviour is exactly
the same as in equals except that
no GSSException is thrown; instead, false will be returned in the
situation where an error occurs.
equals in interface GSSNameSpiequals in class Objectanother - the object to be compared toequals(GSSNameSpi)public int hashCode()
hashCode in interface GSSNameSpihashCode in class Object
public byte[] export()
throws GSSException
(1) all occurrences of the characters `@`, `/`, and `\` within principal components or realm names shall be quoted with an immediately-preceding `\`. (2) all occurrences of the null, backspace, tab, or newline characters within principal components or realm names will be represented, respectively, with `\0`, `\b`, `\t`, or `\n`. (3) the `\` quoting character shall not be emitted within an exported name except to accomodate cases (1) and (2).
export in interface GSSNameSpiGSSException - with major codes NAME_NOT_MN, BAD_NAME,
BAD_NAME, FAILURE.public Oid getMechanism()
getMechanism in interface GSSNameSpipublic String toString()
toString in interface GSSNameSpitoString in class ObjectgetStringNameType()public Oid getGSSNameType()
public Oid getStringNameType()
getStringNameType in interface GSSNameSpipublic boolean isAnonymousName()
isAnonymousName in interface GSSNameSpipublic Provider getProvider()
getProvider in interface GSSNameSpi
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||