sun.security.mule.jgss.spi
Interface GSSCredentialSpi

All Known Implementing Classes:
GSSCredElement, SpNegoCredElement

public interface GSSCredentialSpi

This interface is implemented by a mechanism specific credential element. A GSSCredential is conceptually a container class of several credential elements from different mechanisms.

Author:
Mayank Upadhyay

Method Summary
 void dispose()
          Called to invalidate this credential element and release any system recourses and cryptographic information owned by the credential.
 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.
 

Method Detail

getProvider

Provider getProvider()

dispose

void dispose()
             throws GSSException
Called to invalidate this credential element and release any system recourses and cryptographic information owned by the credential.

Throws:
GSSException - with major codes NO_CRED and FAILURE

getName

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

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

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

getAcceptLifetime

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

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

isInitiatorCredential

boolean isInitiatorCredential()
                              throws GSSException
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

boolean isAcceptorCredential()
                             throws GSSException
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

Oid getMechanism()
Returns the oid representing the underlying credential mechanism oid.

Returns:
the Oid for this credential mechanism
Throws:
GSSException - may be thrown


Copyright © 2013. All Rights Reserved.