com.ibm.security.jgss.spi
Interface GSSCredentialSpi
- public interface GSSCredentialSpi
Version:
1.3, 12/03/01
Author:
Mayank Upadhyay
Method Summary
Modifier and Type | Method and Description |
---|---|
|
dispose()
Called to invalidate this credential element and release
any system recourses and cryptographic information owned
by the credential.
|
|
getAcceptLifetime()
Returns the accept lifetime remaining.
|
|
getInitLifetime()
Returns the init lifetime remaining.
|
|
getMechanism()
Returns the oid representing the underlying credential
mechanism oid.
|
getName()
Returns the principal name for this credential.
|
|
|
getProvider()
|
|
isAcceptorCredential()
Determines if this credential element can be used by a context
acceptor.
|
|
isInitiatorCredential()
Determines if this credential element can be used by a context
initiator.
|
Method Detail
getProvider
- java.security.Provider getProvider( )
dispose
- void dispose()
- 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
- GSSNameSpi getName()
- 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
- int getInitLifetime()
- 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
- int getAcceptLifetime()
- 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
- boolean isInitiatorCredential()
- 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
- boolean isAcceptorCredential()
- 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
- org.ietf.jgss.Oid getMechanism( )
Returns the oid representing the underlying credential
mechanism oid.
Returns:
the Oid for this credential mechanism