sun.security.mule.jgss.wrapper
Class GSSCredElement

java.lang.Object
  extended by sun.security.mule.jgss.wrapper.GSSCredElement
All Implemented Interfaces:
GSSCredentialSpi

public class GSSCredElement
extends Object
implements GSSCredentialSpi

This class is essentially a wrapper class for the gss_cred_id_t structure of the native GSS library.

Since:
1.6
Author:
Valerie Peng

Method Summary
 void dispose()
          Called to invalidate this credential element and release any system recourses and cryptographic information owned by the credential.
protected  void finalize()
           
 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.
 GSSNameElement 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getProvider

public Provider getProvider()
Specified by:
getProvider in interface GSSCredentialSpi

dispose

public void dispose()
             throws GSSException
Description copied from interface: GSSCredentialSpi
Called to invalidate this credential element and release any system recourses and cryptographic information owned by the credential.

Specified by:
dispose in interface GSSCredentialSpi
Throws:
GSSException - with major codes NO_CRED and FAILURE

getName

public GSSNameElement getName()
                       throws GSSException
Description copied from interface: GSSCredentialSpi
Returns the principal name for this credential. The name is in mechanism specific format.

Specified by:
getName in interface GSSCredentialSpi
Returns:
GSSNameSpi representing principal name of this credential
Throws:
GSSException - may be thrown

getInitLifetime

public int getInitLifetime()
                    throws GSSException
Description copied from interface: GSSCredentialSpi
Returns the init lifetime remaining.

Specified by:
getInitLifetime in interface GSSCredentialSpi
Returns:
the init lifetime remaining in seconds
Throws:
GSSException - may be thrown

getAcceptLifetime

public int getAcceptLifetime()
                      throws GSSException
Description copied from interface: GSSCredentialSpi
Returns the accept lifetime remaining.

Specified by:
getAcceptLifetime in interface GSSCredentialSpi
Returns:
the accept lifetime remaining in seconds
Throws:
GSSException - may be thrown

isInitiatorCredential

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

Specified by:
isInitiatorCredential in interface GSSCredentialSpi
Returns:
true if it can be used for initiating contexts

isAcceptorCredential

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

Specified by:
isAcceptorCredential in interface GSSCredentialSpi
Returns:
true if it can be used for accepting contexts

getMechanism

public Oid getMechanism()
Description copied from interface: GSSCredentialSpi
Returns the oid representing the underlying credential mechanism oid.

Specified by:
getMechanism in interface GSSCredentialSpi
Returns:
the Oid for this credential mechanism

toString

public String toString()
Overrides:
toString in class Object

finalize

protected void finalize()
                 throws Throwable
Overrides:
finalize in class Object
Throws:
Throwable


Copyright © 2013. All Rights Reserved.