Liking cljdoc? Tell your friends :D

javax.security.auth.kerberos.KerberosPrincipal

This class encapsulates a Kerberos principal.

This class encapsulates a Kerberos principal.
raw docstring

*-krb-nt-principalclj

Static Constant.

user principal name type.

type: int

Static Constant.

user principal name type.

type: int
raw docstring

*-krb-nt-srv-hstclj

Static Constant.

service with host name as instance (telnet, rcommands) name type.

type: int

Static Constant.

service with host name as instance (telnet, rcommands) name type.

type: int
raw docstring

*-krb-nt-srv-instclj

Static Constant.

service and other unique instance (krbtgt) name type.

type: int

Static Constant.

service and other unique instance (krbtgt) name type.

type: int
raw docstring

*-krb-nt-srv-xhstclj

Static Constant.

service with host as remaining components name type.

type: int

Static Constant.

service with host as remaining components name type.

type: int
raw docstring

*-krb-nt-uidclj

Static Constant.

unique ID name type.

type: int

Static Constant.

unique ID name type.

type: int
raw docstring

*-krb-nt-unknownclj

Static Constant.

unknown name type.

type: int

Static Constant.

unknown name type.

type: int
raw docstring

->kerberos-principalclj

(->kerberos-principal name)
(->kerberos-principal name name-type)

Constructor.

Constructs a KerberosPrincipal from the provided string and name type input. The string is assumed to contain a name in the format that is specified in Section 2.1 (Mandatory Name Forms) of RFC 1964. Valid name types are specified in Section 6.2 (Principal Names) of RFC 4120. The input name must be consistent with the provided name type. (for example, duke@FOO.COM, is a valid input string for the name type, KRB_NT_PRINCIPAL where duke represents a principal, and FOO.COM represents a realm).

If the input name does not contain a realm, the default realm is used. The default realm can be specified either in a Kerberos configuration file or via the java.security.krb5.realm system property. For more information, see

Kerberos Requirements.

name - the principal name - java.lang.String name-type - the name type of the principal - int

throws: java.lang.IllegalArgumentException - if name is improperly formatted, if name is null, if the nameType is not supported, or if name does not contain the realm to use and the default realm is not specified in either a Kerberos configuration file or via the java.security.krb5.realm system property.

Constructor.

Constructs a KerberosPrincipal from the provided string and
 name type input.  The string is assumed to contain a name in the
 format that is specified in Section 2.1 (Mandatory Name Forms) of
 RFC 1964.
 Valid name types are specified in Section 6.2 (Principal Names) of
 RFC 4120.
 The input name must be consistent with the provided name type.
 (for example, duke@FOO.COM, is a valid input string for the
 name type, KRB_NT_PRINCIPAL where duke
 represents a principal, and FOO.COM represents a realm).

  If the input name does not contain a realm, the default realm
 is used. The default realm can be specified either in a Kerberos
 configuration file or via the java.security.krb5.realm
 system property. For more information, see

 Kerberos Requirements.

name - the principal name - `java.lang.String`
name-type - the name type of the principal - `int`

throws: java.lang.IllegalArgumentException - if name is improperly formatted, if name is null, if the nameType is not supported, or if name does not contain the realm to use and the default realm is not specified in either a Kerberos configuration file or via the java.security.krb5.realm system property.
raw docstring

equalsclj

(equals this other)

Compares the specified Object with this Principal for equality. Returns true if the given object is also a KerberosPrincipal and the two KerberosPrincipal instances are equivalent. More formally two KerberosPrincipal instances are equal if the values returned by getName() are equal.

other - the Object to compare to - java.lang.Object

returns: true if the Object passed in represents the same principal as this one, false otherwise. - boolean

Compares the specified Object with this Principal for equality.
 Returns true if the given object is also a
 KerberosPrincipal and the two
 KerberosPrincipal instances are equivalent.
 More formally two KerberosPrincipal instances are equal
 if the values returned by getName() are equal.

other - the Object to compare to - `java.lang.Object`

returns: true if the Object passed in represents the same principal
 as this one, false otherwise. - `boolean`
raw docstring

get-nameclj

(get-name this)

The returned string corresponds to the single-string representation of a Kerberos Principal name as specified in Section 2.1 of RFC 1964.

returns: the principal name. - java.lang.String

The returned string corresponds to the single-string
 representation of a Kerberos Principal name as specified in
 Section 2.1 of RFC 1964.

returns: the principal name. - `java.lang.String`
raw docstring

get-name-typeclj

(get-name-type this)

Returns the name type of the KerberosPrincipal. Valid name types are specified in Section 6.2 of RFC4120.

returns: the name type. - int

Returns the name type of the KerberosPrincipal. Valid name types
 are specified in Section 6.2 of
  RFC4120.

returns: the name type. - `int`
raw docstring

get-realmclj

(get-realm this)

Returns the realm component of this Kerberos principal.

returns: the realm component of this Kerberos principal. - java.lang.String

Returns the realm component of this Kerberos principal.

returns: the realm component of this Kerberos principal. - `java.lang.String`
raw docstring

hash-codeclj

(hash-code this)

Returns a hashcode for this principal. The hash code is defined to be the result of the following calculation:

hashCode = getName().hashCode();

returns: a hashCode() for the KerberosPrincipal - int

Returns a hashcode for this principal. The hash code is defined to
 be the result of the following  calculation:


  hashCode = getName().hashCode();

returns: a hashCode() for the KerberosPrincipal - `int`
raw docstring

to-stringclj

(to-string this)

Description copied from class: Object

returns: a string representation of the object. - java.lang.String

Description copied from class: Object

returns: a string representation of the object. - `java.lang.String`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close