sun.security.mule.jgss.krb5
Class Krb5AcceptCredential

java.lang.Object
  extended by javax.security.auth.kerberos.KerberosKey
      extended by sun.security.mule.jgss.krb5.Krb5AcceptCredential
All Implemented Interfaces:
Serializable, Key, SecretKey, Destroyable

public class Krb5AcceptCredential
extends KerberosKey

Implements the krb5 acceptor credential element.

Since:
1.4
Author:
Mayank Upadhyay
See Also:
Serialized Form

Method Summary
 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.
 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.KerberosKey
equals, getAlgorithm, getEncoded, getFormat, getKeyType, getPrincipal, getVersionNumber, hashCode, isDestroyed, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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

destroy

public void destroy()
             throws DestroyFailedException
Destroys the locally cached EncryptionKey value and then calls destroy in the base class.

Specified by:
destroy in interface Destroyable
Overrides:
destroy in class KerberosKey
Throws:
DestroyFailedException


Copyright © 2013. All Rights Reserved.