public interface

GSSCredentialSpi

sun.security.jgss.spi.GSSCredentialSpi
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract void dispose()
Called to invalidate this credential element and release any system recourses and cryptographic information owned by the credential.
abstract int getAcceptLifetime()
Returns the accept lifetime remaining.
abstract int getInitLifetime()
Returns the init lifetime remaining.
abstract Oid getMechanism()
Returns the oid representing the underlying credential mechanism oid.
abstract GSSNameSpi getName()
Returns the principal name for this credential.
abstract Provider getProvider()
abstract boolean isAcceptorCredential()
Determines if this credential element can be used by a context acceptor.
abstract boolean isInitiatorCredential()
Determines if this credential element can be used by a context initiator.

Public Methods

public abstract void dispose ()

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

public abstract int getAcceptLifetime ()

Returns the accept lifetime remaining.

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

public abstract int getInitLifetime ()

Returns the init lifetime remaining.

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

public abstract Oid getMechanism ()

Returns the oid representing the underlying credential mechanism oid.

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

public abstract 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 abstract Provider getProvider ()

public abstract 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 abstract 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