com.ibm.security.jgss.spi

Interface GSSCredentialSpi


  1. 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.
Version:
1.3, 12/03/01
Author:
Mayank Upadhyay

Method Summary

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

Method Detail

getProvider

  1. java.security.Provider getProvider( )

dispose

  1. void dispose()
  2. throws org.ietf.jgss.GSSException
Called to invalidate this credential element and release any system recourses and cryptographic information owned by the credential.
Throws:
org.ietf.jgss.GSSException - with major codes NO_CRED and FAILURE

getName

  1. GSSNameSpi getName()
  2. throws org.ietf.jgss.GSSException
Returns the principal name for this credential. The name is in mechanism specific format.
Returns:
GSSNameSpi representing principal name of this credential
Throws:
org.ietf.jgss.GSSException - may be thrown

getInitLifetime

  1. int getInitLifetime()
  2. throws org.ietf.jgss.GSSException
Returns the init lifetime remaining.
Returns:
the init lifetime remaining in seconds
Throws:
org.ietf.jgss.GSSException - may be thrown

getAcceptLifetime

  1. int getAcceptLifetime()
  2. throws org.ietf.jgss.GSSException
Returns the accept lifetime remaining.
Returns:
the accept lifetime remaining in seconds
Throws:
org.ietf.jgss.GSSException - may be thrown

isInitiatorCredential

  1. boolean isInitiatorCredential()
  2. throws org.ietf.jgss.GSSException
Determines if this credential element can be used by a context initiator.
Returns:
true if it can be used for initiating contexts
Throws:
org.ietf.jgss.GSSException

isAcceptorCredential

  1. boolean isAcceptorCredential()
  2. throws org.ietf.jgss.GSSException
Determines if this credential element can be used by a context acceptor.
Returns:
true if it can be used for accepting contexts
Throws:
org.ietf.jgss.GSSException

getMechanism

  1. org.ietf.jgss.Oid getMechanism( )
Returns the oid representing the underlying credential mechanism oid.
Returns:
the Oid for this credential mechanism