Class Overview
This class is the cred element implementation for SPNEGO mech.
NOTE: The current implementation can only support one mechanism.
This should be changed once multi-mechanism support is needed.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
sun.security.jgss.spi.GSSCredentialSpi
abstract
void
|
dispose()
Called to invalidate this credential element and release
any system recourses and cryptographic information owned
by the credential.
|
abstract
int
|
getAcceptLifetime()
Returns the accept lifetime remaining.
|
abstract
int
|
getInitLifetime()
Returns the init lifetime remaining.
|
abstract
Oid
|
getMechanism()
Returns the oid representing the underlying credential
mechanism oid.
|
abstract
GSSNameSpi
|
getName()
Returns the principal name for this credential.
|
abstract
Provider
|
getProvider()
|
abstract
boolean
|
isAcceptorCredential()
Determines if this credential element can be used by a context
acceptor.
|
abstract
boolean
|
isInitiatorCredential()
Determines if this credential element can be used by a context
initiator.
|
|
Public Methods
public
void
dispose
()
Called to invalidate this credential element and release
any system recourses and cryptographic information owned
by the credential.
public
int
getAcceptLifetime
()
Returns the accept lifetime remaining.
Returns
- the accept lifetime remaining in seconds
public
int
getInitLifetime
()
Returns the init lifetime remaining.
Returns
- the init lifetime remaining in seconds
public
Oid
getMechanism
()
Returns the oid representing the underlying credential
mechanism oid.
Returns
- the Oid for this credential mechanism
Returns the principal name for this credential. The name
is in mechanism specific format.
Returns
- GSSNameSpi representing principal name of this credential
public
boolean
isAcceptorCredential
()
Determines if this credential element can be used by a context
acceptor.
Returns
- true if it can be used for accepting contexts
public
boolean
isInitiatorCredential
()
Determines if this credential element can be used by a context
initiator.
Returns
- true if it can be used for initiating contexts