Class Overview
Implements the krb5 acceptor credential element.
Summary
Public Methods |
void
|
destroy()
Destroys the locally cached EncryptionKey value and then calls
destroy in the base class.
|
void
|
dispose()
Called to invalidate this credential element.
|
int
|
getAcceptLifetime()
Returns the accept lifetime remaining.
|
int
|
getInitLifetime()
Returns the init lifetime remaining.
|
final
Oid
|
getMechanism()
Returns the oid representing the underlying credential
mechanism oid.
|
final
GSSNameSpi
|
getName()
Returns the principal name for this credential.
|
final
Provider
|
getProvider()
|
boolean
|
isAcceptorCredential()
Determines if this credential element can be used by a context
acceptor.
|
boolean
|
isInitiatorCredential()
Determines if this credential element can be used by a context
initiator.
|
[Expand]
Inherited Methods |
From class
javax.security.auth.kerberos.KerberosKey
void
|
destroy()
Destroys this key.
|
boolean
|
equals(Object other)
Compares the specified Object with this KerberosKey for equality.
|
final
String
|
getAlgorithm()
Returns the standard algorithm name for this key.
|
final
byte[]
|
getEncoded()
Returns the key material of this secret key.
|
final
String
|
getFormat()
Returns the name of the encoding format for this secret key.
|
final
int
|
getKeyType()
Returns the key type for this long-term key.
|
final
KerberosPrincipal
|
getPrincipal()
Returns the principal that this key belongs to.
|
final
int
|
getVersionNumber()
Returns the key version number.
|
int
|
hashCode()
Returns a hashcode for this KerberosKey.
|
boolean
|
isDestroyed()
Determines if this key has been destroyed.
|
String
|
toString()
Returns a string representation of the object.
|
|
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
java.security.Key
abstract
String
|
getAlgorithm()
Returns the standard algorithm name for this key.
|
abstract
byte[]
|
getEncoded()
Returns the key in its primary encoding format, or null
if this key does not support encoding.
|
abstract
String
|
getFormat()
Returns the name of the primary encoding format of this key,
or null if this key does not support encoding.
|
|
From interface
javax.security.auth.Destroyable
abstract
void
|
destroy()
Destroy this Object .
|
abstract
boolean
|
isDestroyed()
Determine if this Object has been destroyed.
|
|
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
destroy
()
Destroys the locally cached EncryptionKey value and then calls
destroy in the base class.
public
void
dispose
()
Called to invalidate this credential element.
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
final
Oid
getMechanism
()
Returns the oid representing the underlying credential
mechanism oid.
Returns
- the Oid for this credential mechanism
public
final
GSSNameSpi
getName
()
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