public class

Krb5InitCredential

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

Class Overview

Implements the krb5 initiator credential element.

Summary

Constants
long serialVersionUID
[Expand]
Inherited Constants
From class javax.security.auth.kerberos.KerberosTicket
Fields
private Credentials krb5Credentials
private Krb5NameElement name
[Expand]
Inherited Fields
From class javax.security.auth.kerberos.KerberosTicket
Public Methods
void dispose()
Called to invalidate this credential element.
int getAcceptLifetime()
Returns the accept lifetime remaining.
int getInitLifetime()
Returns the init lifetime remaining.
static Krb5InitCredential getInstance(Krb5NameElement name, Credentials delegatedCred, Config kerberosConfig)
static Krb5InitCredential getInstance(int caller, Krb5NameElement name, int initLifetime, Config kerberosConfig)
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.KerberosTicket
From class java.lang.Object
From interface javax.security.auth.Destroyable
From interface javax.security.auth.Refreshable
From interface sun.security.mule.jgss.spi.GSSCredentialSpi

Constants

private static final long serialVersionUID

Constant Value: 7723415700837898232 (0x6b2f15a8d51e17f8)

Fields

private Credentials krb5Credentials

private Krb5NameElement name

Public Methods

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 static Krb5InitCredential getInstance (Krb5NameElement name, Credentials delegatedCred, Config kerberosConfig)

Parameters
name
delegatedCred
kerberosConfig
Throws
GSSException

public static Krb5InitCredential getInstance (int caller, Krb5NameElement name, int initLifetime, Config kerberosConfig)

Parameters
caller
name
initLifetime
kerberosConfig
Throws
GSSException

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