public class

Krb5AcceptCredential

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

Class Overview

Implements the krb5 acceptor credential element.

Summary

[Expand]
Inherited Constants
From interface java.security.Key
From interface javax.crypto.SecretKey
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.jgss.spi.GSSCredentialSpi

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.

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