| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Oid | |
| private final PrincipalName |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if they both refer to the same entity, else falseto be compared with other)Implements sun. Equal method for the GSSNameSpi objects. |
| public boolean | Returns: true if they both refer to the same entity, else falsethe object to be compared to another)Overrides java. Implements sun. Compares this |
| public byte[] | export()
Implements sun. Returns the principal name in the form user@REALM or host/service@REALM but with the following constraints that are imposed by RFC 1964: (1) all occurrences of the characters `@`, `/`, and `\` within principal components or realm names shall be quoted with an immediately-preceding `\`. |
| private static String[] | |
| public Oid | |
| private static String | |
| pack-priv static Krb5NameElement | |
| public static Krb5NameElement | |
| public final PrincipalName | |
| public Oid | Returns: the Oid of the mechanism typeImplements sun. Get the mechanism type that this NameElement corresponds to. |
| public Provider | |
| public Oid | Returns: the Oid for the format of the printed nameImplements sun. Returns the oid describing the format of the printable name. |
| public int | Returns: a hashcode value for this GSSNameSpiOverrides java. Implements sun. Returns a hashcode value for this GSSNameSpi. |
| public boolean | isAnonymousName()
Implements sun. Indicates if this name object represents an Anonymous name. |
| public String | Returns: string form of this nameOverrides java. Implements sun. Returns a string representation for this name. |
| gssNameStr | back to summary |
|---|---|
| private final String gssNameStr | |
| gssNameType | back to summary |
|---|---|
| private final Oid gssNameType | |
| krb5PrincipalName | back to summary |
|---|---|
| private final PrincipalName krb5PrincipalName | |
| Krb5NameElement | back to summary |
|---|---|
| private Krb5NameElement(PrincipalName principalName, String gssNameStr, Oid gssNameType) | |
| equals | back to summary |
|---|---|
| public boolean equals(GSSNameSpi other) throws GSSException Implements sun. Equal method for the GSSNameSpi objects. If either name denotes an anonymous principal, the call should return false.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object another) Overrides java. Implements sun. Compares this
| |
| export | back to summary |
|---|---|
| public byte[] export() throws GSSException Implements sun. Returns the principal name in the form user@REALM or host/service@REALM but with the following constraints that are imposed by RFC 1964: (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 accommodate cases (1) and (2).
| |
| getComponents | back to summary |
|---|---|
| private static String[] getComponents(String gssNameStr) throws GSSException | |
| getGSSNameType | back to summary |
|---|---|
| public Oid getGSSNameType() Returns the name type oid. | |
| getHostBasedInstance | back to summary |
|---|---|
| private static String getHostBasedInstance(String serviceName, String hostName) throws GSSException | |
| getInstance | back to summary |
|---|---|
| pack-priv static Krb5NameElement getInstance(String gssNameStr, Oid gssNameType) throws GSSException Instantiates a new Krb5NameElement object. Internally it stores the information provided by the input parameters so that they may later be used for output when a printable representation of this name is needed in GSS-API format rather than in Kerberos format. | |
| getInstance | back to summary |
|---|---|
| public static Krb5NameElement getInstance(PrincipalName principalName) | |
| getKrb5PrincipalName | back to summary |
|---|---|
| public final PrincipalName getKrb5PrincipalName() | |
| getMechanism | back to summary |
|---|---|
| public Oid getMechanism() Implements sun. Get the mechanism type that this NameElement corresponds to.
| |
| getProvider | back to summary |
|---|---|
| public Provider getProvider() Implements sun. | |
| getStringNameType | back to summary |
|---|---|
| public Oid getStringNameType() Implements sun. Returns the oid describing the format of the printable name.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements sun. Returns a hashcode value for this GSSNameSpi.
| |
| isAnonymousName | back to summary |
|---|---|
| public boolean isAnonymousName() Implements sun. Indicates if this name object represents an Anonymous name. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements sun. Returns a string representation for this name. The printed name type can be obtained by calling getStringNameType().
| |