public class

Krb5AcceptCredential

extends KerberosKey
implements GSSCredentialSpi
java.lang.Object
   ↳ javax.security.auth.kerberos.KerberosKey
     ↳ sun.security.mule.jgss.krb5.Krb5AcceptCredential

Class Overview

Implements the krb5 acceptor credential element.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class javax.security.auth.kerberos.KerberosKey
From interface java.security.Key
From interface javax.crypto.SecretKey
Fields
private EncryptionKey[] krb5EncryptionKeys We cache an EncryptionKey representation of this key because many Krb5 operation require a key in that form.
private Krb5NameElement name
[Expand]
Inherited Fields
From class javax.security.auth.kerberos.KerberosKey
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
From class java.lang.Object
From interface java.security.Key
From interface javax.security.auth.Destroyable
From interface sun.security.mule.jgss.spi.GSSCredentialSpi

Constants

private static final long serialVersionUID

Constant Value: 7714332137352567952 (0x6b0ed034e6479c90)

Fields

private EncryptionKey[] krb5EncryptionKeys

We cache an EncryptionKey representation of this key because many Krb5 operation require a key in that form. At some point we might do away with EncryptionKey altogether and use the base class KerberosKey everywhere.

private Krb5NameElement name

Public Methods

public void destroy ()

Destroys the locally cached EncryptionKey value and then calls destroy in the base class.

Throws
DestroyFailedException

public void dispose ()

Called to invalidate this credential element.

Throws
GSSException

public int getAcceptLifetime ()

Returns the accept lifetime remaining.

Returns
  • the accept lifetime remaining in seconds
Throws
GSSException may be thrown

public int getInitLifetime ()

Returns the init lifetime remaining.

Returns
  • the init lifetime remaining in seconds
Throws
GSSException may be thrown

public final Oid getMechanism ()

Returns the oid representing the underlying credential mechanism oid.

Returns
  • the Oid for this credential mechanism
Throws
GSSException may be thrown

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
Throws
GSSException may be thrown

public final Provider getProvider ()

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
Throws
GSSException

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
Throws
GSSException