sun.security.mule.jgss.krb5
Class Krb5InitCredential

java.lang.Object
  extended by javax.security.auth.kerberos.KerberosTicket
      extended by sun.security.mule.jgss.krb5.Krb5InitCredential
All Implemented Interfaces:
Serializable, Destroyable, Refreshable

public class Krb5InitCredential
extends KerberosTicket

Implements the krb5 initiator credential element.

Since:
1.4
Author:
Mayank Upadhyay, Ram Marti
See Also:
Serialized Form

Method Summary
 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(int caller, Krb5NameElement name, int initLifetime, Config kerberosConfig)
           
static Krb5InitCredential getInstance(Krb5NameElement name, Credentials delegatedCred, Config kerberosConfig)
           
 Oid getMechanism()
          Returns the oid representing the underlying credential mechanism oid.
 GSSNameSpi getName()
          Returns the principal name for this credential.
 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.
 
Methods inherited from class javax.security.auth.kerberos.KerberosTicket
destroy, equals, getAuthTime, getClient, getClientAddresses, getEncoded, getEndTime, getFlags, getRenewTill, getServer, getSessionKey, getSessionKeyType, getStartTime, hashCode, isCurrent, isDestroyed, isForwardable, isForwarded, isInitial, isPostdated, isProxiable, isProxy, isRenewable, refresh, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static Krb5InitCredential getInstance(int caller,
                                             Krb5NameElement name,
                                             int initLifetime,
                                             Config kerberosConfig)
                                      throws GSSException
Throws:
GSSException

getInstance

public static Krb5InitCredential getInstance(Krb5NameElement name,
                                             Credentials delegatedCred,
                                             Config kerberosConfig)
                                      throws GSSException
Throws:
GSSException

getName

public final GSSNameSpi getName()
                         throws GSSException
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

getInitLifetime

public int getInitLifetime()
                    throws GSSException
Returns the init lifetime remaining.

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

getAcceptLifetime

public int getAcceptLifetime()
                      throws GSSException
Returns the accept lifetime remaining.

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

isInitiatorCredential

public boolean isInitiatorCredential()
                              throws GSSException
Description copied from interface: GSSCredentialSpi
Determines if this credential element can be used by a context initiator.

Returns:
true if it can be used for initiating contexts
Throws:
GSSException

isAcceptorCredential

public boolean isAcceptorCredential()
                             throws GSSException
Description copied from interface: GSSCredentialSpi
Determines if this credential element can be used by a context acceptor.

Returns:
true if it can be used for accepting contexts
Throws:
GSSException

getMechanism

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

getProvider

public final Provider getProvider()

dispose

public void dispose()
             throws GSSException
Called to invalidate this credential element.

Throws:
GSSException - with major codes NO_CRED and FAILURE


Copyright © 2013. All Rights Reserved.