Liking cljdoc? Tell your friends :D

javax.security.auth.kerberos.KerberosTicket

This class encapsulates a Kerberos ticket and associated information as viewed from the client's point of view. It captures all information that the Key Distribution Center (KDC) sends to the client in the reply message KDC-REP defined in the Kerberos Protocol Specification (RFC 4120).

All Kerberos JAAS login modules that authenticate a user to a KDC should use this class. Where available, the login module might even read this information from a ticket cache in the operating system instead of directly communicating with the KDC. During the commit phase of the JAAS authentication process, the JAAS login module should instantiate this class and store the instance in the private credential set of a Subject.

It might be necessary for the application to be granted a PrivateCredentialPermission if it needs to access a KerberosTicket instance from a Subject. This permission is not needed when the application depends on the default JGSS Kerberos mechanism to access the KerberosTicket. In that case, however, the application will need an appropriate ServicePermission.

Note that this class is applicable to both ticket granting tickets and other regular service tickets. A ticket granting ticket is just a special case of a more generalized service ticket.

This class encapsulates a Kerberos ticket and associated
information as viewed from the client's point of view. It captures all
information that the Key Distribution Center (KDC) sends to the client
in the reply message KDC-REP defined in the Kerberos Protocol
Specification (RFC 4120).

All Kerberos JAAS login modules that authenticate a user to a KDC should
use this class. Where available, the login module might even read this
information from a ticket cache in the operating system instead of
directly communicating with the KDC. During the commit phase of the JAAS
authentication process, the JAAS login module should instantiate this
class and store the instance in the private credential set of a
Subject.

It might be necessary for the application to be granted a
PrivateCredentialPermission if it needs to access a KerberosTicket
instance from a Subject. This permission is not needed when the
application depends on the default JGSS Kerberos mechanism to access the
KerberosTicket. In that case, however, the application will need an
appropriate
ServicePermission.

Note that this class is applicable to both ticket granting tickets and
other regular service tickets. A ticket granting ticket is just a
special case of a more generalized service ticket.
raw docstring

->kerberos-ticketclj

(->kerberos-ticket asn-1-encoding
                   client
                   server
                   session-key
                   key-type
                   flags
                   auth-time
                   start-time
                   end-time
                   renew-till
                   client-addresses)

Constructor.

Constructs a KerberosTicket using credentials information that a client either receives from a KDC or reads from a cache.

asn-1-encoding - the ASN.1 encoding of the ticket as defined by the Kerberos protocol specification. - byte[] client - the client that owns this service ticket - javax.security.auth.kerberos.KerberosPrincipal server - the service that this ticket is for - javax.security.auth.kerberos.KerberosPrincipal session-key - the raw bytes for the session key that must be used to encrypt the authenticator that will be sent to the server - byte[] key-type - the key type for the session key as defined by the Kerberos protocol specification. - int flags - the ticket flags. Each element in this array indicates the value for the corresponding bit in the ASN.1 BitString that represents the ticket flags. If the number of elements in this array is less than the number of flags used by the Kerberos protocol, then the missing flags will be filled in with false. - boolean[] auth-time - the time of initial authentication for the client - java.util.Date start-time - the time after which the ticket will be valid. This may be null in which case the value of authTime is treated as the startTime. - java.util.Date end-time - the time after which the ticket will no longer be valid - java.util.Date renew-till - an absolute expiration time for the ticket, including all renewal that might be possible. This field may be null for tickets that are not renewable. - java.util.Date client-addresses - the addresses from where the ticket may be used by the client. This field may be null when the ticket is usable from any address. - java.net.InetAddress[]

Constructor.

Constructs a KerberosTicket using credentials information that a
 client either receives from a KDC or reads from a cache.

asn-1-encoding - the ASN.1 encoding of the ticket as defined by the Kerberos protocol specification. - `byte[]`
client - the client that owns this service ticket - `javax.security.auth.kerberos.KerberosPrincipal`
server - the service that this ticket is for - `javax.security.auth.kerberos.KerberosPrincipal`
session-key - the raw bytes for the session key that must be used to encrypt the authenticator that will be sent to the server - `byte[]`
key-type - the key type for the session key as defined by the Kerberos protocol specification. - `int`
flags - the ticket flags. Each element in this array indicates the value for the corresponding bit in the ASN.1 BitString that represents the ticket flags. If the number of elements in this array is less than the number of flags used by the Kerberos protocol, then the missing flags will be filled in with false. - `boolean[]`
auth-time - the time of initial authentication for the client - `java.util.Date`
start-time - the time after which the ticket will be valid. This may be null in which case the value of authTime is treated as the startTime. - `java.util.Date`
end-time - the time after which the ticket will no longer be valid - `java.util.Date`
renew-till - an absolute expiration time for the ticket, including all renewal that might be possible. This field may be null for tickets that are not renewable. - `java.util.Date`
client-addresses - the addresses from where the ticket may be used by the client. This field may be null when the ticket is usable from any address. - `java.net.InetAddress[]`
raw docstring

current?clj

(current? this)

Determines if this ticket is still current.

returns: true if this Object is currently current, false otherwise. - boolean

Determines if this ticket is still current.

returns: true if this Object is currently current,
          false otherwise. - `boolean`
raw docstring

destroyclj

(destroy this)

Destroys the ticket and destroys any sensitive information stored in it.

throws: javax.security.auth.DestroyFailedException - if the destroy operation fails.

Destroys the ticket and destroys any sensitive information stored in
 it.

throws: javax.security.auth.DestroyFailedException - if the destroy operation fails.
raw docstring

destroyed?clj

(destroyed? this)

Determines if this ticket has been destroyed.

returns: true if this Object has been destroyed, false otherwise. - boolean

Determines if this ticket has been destroyed.

returns: true if this Object has been destroyed,
          false otherwise. - `boolean`
raw docstring

equalsclj

(equals this other)

Compares the specified Object with this KerberosTicket for equality. Returns true if the given object is also a KerberosTicket and the two KerberosTicket instances are equivalent.

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

returns: true if the specified object is equal to this KerberosTicket, false otherwise. NOTE: Returns false if either of the KerberosTicket objects has been destroyed. - boolean

Compares the specified Object with this KerberosTicket for equality.
 Returns true if the given object is also a
 KerberosTicket and the two
 KerberosTicket instances are equivalent.

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

returns: true if the specified object is equal to this KerberosTicket,
 false otherwise. NOTE: Returns false if either of the KerberosTicket
 objects has been destroyed. - `boolean`
raw docstring

forwardable?clj

(forwardable? this)

Determines if this ticket is forwardable.

returns: true if this ticket is forwardable, false if not. - boolean

Determines if this ticket is forwardable.

returns: true if this ticket is forwardable, false if not. - `boolean`
raw docstring

forwarded?clj

(forwarded? this)

Determines if this ticket had been forwarded or was issued based on authentication involving a forwarded ticket-granting ticket.

returns: true if this ticket had been forwarded or was issued based on authentication involving a forwarded ticket-granting ticket, false otherwise. - boolean

Determines if this ticket had been forwarded or was issued based on
 authentication involving a forwarded ticket-granting ticket.

returns: true if this ticket had been forwarded or was issued based on
 authentication involving a forwarded ticket-granting ticket,
 false otherwise. - `boolean`
raw docstring

get-auth-timeclj

(get-auth-time this)

Returns the time that the client was authenticated.

returns: the time that the client was authenticated or null if not set. - java.util.Date

Returns the time that the client was authenticated.

returns: the time that the client was authenticated
         or null if not set. - `java.util.Date`
raw docstring

get-clientclj

(get-client this)

Returns the client principal associated with this ticket.

returns: the client principal. - javax.security.auth.kerberos.KerberosPrincipal

Returns the client principal associated with this ticket.

returns: the client principal. - `javax.security.auth.kerberos.KerberosPrincipal`
raw docstring

get-client-addressesclj

(get-client-addresses this)

Returns a list of addresses from where the ticket can be used.

returns: ths list of addresses or null, if the field was not provided. - java.net.InetAddress[]

Returns a list of addresses from where the ticket can be used.

returns: ths list of addresses or null, if the field was not
 provided. - `java.net.InetAddress[]`
raw docstring

get-encodedclj

(get-encoded this)

Returns an ASN.1 encoding of the entire ticket.

returns: an ASN.1 encoding of the entire ticket. - byte[]

Returns an ASN.1 encoding of the entire ticket.

returns: an ASN.1 encoding of the entire ticket. - `byte[]`
raw docstring

get-end-timeclj

(get-end-time this)

Returns the expiration time for this ticket's validity period.

returns: the expiration time for this ticket's validity period. - java.util.Date

Returns the expiration time for this ticket's validity period.

returns: the expiration time for this ticket's validity period. - `java.util.Date`
raw docstring

get-flagsclj

(get-flags this)

Returns the flags associated with this ticket. Each element in the returned array indicates the value for the corresponding bit in the ASN.1 BitString that represents the ticket flags.

returns: the flags associated with this ticket. - boolean[]

Returns the flags associated with this ticket. Each element in the
 returned array indicates the value for the corresponding bit in the
 ASN.1 BitString that represents the ticket flags.

returns: the flags associated with this ticket. - `boolean[]`
raw docstring

get-renew-tillclj

(get-renew-till this)

Returns the latest expiration time for this ticket, including all renewals. This will return a null value for non-renewable tickets.

returns: the latest expiration time for this ticket. - java.util.Date

Returns the latest expiration time for this ticket, including all
 renewals. This will return a null value for non-renewable tickets.

returns: the latest expiration time for this ticket. - `java.util.Date`
raw docstring

get-serverclj

(get-server this)

Returns the service principal associated with this ticket.

returns: the service principal. - javax.security.auth.kerberos.KerberosPrincipal

Returns the service principal associated with this ticket.

returns: the service principal. - `javax.security.auth.kerberos.KerberosPrincipal`
raw docstring

get-session-keyclj

(get-session-key this)

Returns the session key associated with this ticket.

returns: the session key. - javax.crypto.SecretKey

Returns the session key associated with this ticket.

returns: the session key. - `javax.crypto.SecretKey`
raw docstring

get-session-key-typeclj

(get-session-key-type this)

Returns the key type of the session key associated with this ticket as defined by the Kerberos Protocol Specification.

returns: the key type of the session key associated with this ticket. - int

Returns the key type of the session key associated with this
 ticket as defined by the Kerberos Protocol Specification.

returns: the key type of the session key associated with this
 ticket. - `int`
raw docstring

get-start-timeclj

(get-start-time this)

Returns the start time for this ticket's validity period.

returns: the start time for this ticket's validity period or null if not set. - java.util.Date

Returns the start time for this ticket's validity period.

returns: the start time for this ticket's validity period
         or null if not set. - `java.util.Date`
raw docstring

hash-codeclj

(hash-code this)

Returns a hashcode for this KerberosTicket.

returns: a hashCode() for the KerberosTicket - int

Returns a hashcode for this KerberosTicket.

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

initial?clj

(initial? this)

Determines if this ticket was issued using the Kerberos AS-Exchange protocol, and not issued based on some ticket-granting ticket.

returns: true if this ticket was issued using the Kerberos AS-Exchange protocol, false if not. - boolean

Determines if this ticket was issued using the Kerberos AS-Exchange
 protocol, and not issued based on some ticket-granting ticket.

returns: true if this ticket was issued using the Kerberos AS-Exchange
 protocol, false if not. - `boolean`
raw docstring

postdated?clj

(postdated? this)

Determines is this ticket is post-dated.

returns: true if this ticket is post-dated, false if not. - boolean

Determines is this ticket is post-dated.

returns: true if this ticket is post-dated, false if not. - `boolean`
raw docstring

proxiable?clj

(proxiable? this)

Determines if this ticket is proxiable.

returns: true if this ticket is proxiable, false if not. - boolean

Determines if this ticket is proxiable.

returns: true if this ticket is proxiable, false if not. - `boolean`
raw docstring

proxy?clj

(proxy? this)

Determines is this ticket is a proxy-ticket.

returns: true if this ticket is a proxy-ticket, false if not. - boolean

Determines is this ticket is a proxy-ticket.

returns: true if this ticket is a proxy-ticket, false if not. - `boolean`
raw docstring

refreshclj

(refresh this)

Extends the validity period of this ticket. The ticket will contain a new session key if the refresh operation succeeds. The refresh operation will fail if the ticket is not renewable or the latest allowable renew time has passed. Any other error returned by the KDC will also cause this method to fail.

Note: This method is not synchronized with the the accessor methods of this object. Hence callers need to be aware of multiple threads that might access this and try to renew it at the same time.

throws: javax.security.auth.RefreshFailedException - if the ticket is not renewable, or the latest allowable renew time has passed, or the KDC returns some error.

Extends the validity period of this ticket. The ticket will contain
 a new session key if the refresh operation succeeds. The refresh
 operation will fail if the ticket is not renewable or the latest
 allowable renew time has passed. Any other error returned by the
 KDC will also cause this method to fail.

 Note: This method is not synchronized with the the accessor
 methods of this object. Hence callers need to be aware of multiple
 threads that might access this and try to renew it at the same
 time.

throws: javax.security.auth.RefreshFailedException - if the ticket is not renewable, or the latest allowable renew time has passed, or the KDC returns some error.
raw docstring

renewable?clj

(renewable? this)

Determines is this ticket is renewable. If so, the refresh method can be called, assuming the validity period for renewing is not already over.

returns: true if this ticket is renewable, false if not. - boolean

Determines is this ticket is renewable. If so, the refresh method can be called, assuming the validity period for
 renewing is not already over.

returns: true if this ticket is renewable, false if not. - `boolean`
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