|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GSSCredSpi
This interface is implemented by each mechanism to provide the functionality of a credential. Each GSSCredential uses provider objects implementing this interface. A GSSCredential may have several credential elements underneath it, but each GSSCredSpi object can represent at most 1 credential element.
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. |
int |
getLifetime()
Returns the lifetime remaining. |
Oid |
getMechanism()
Returns the oid representing the underlying credential mechanism oid. |
GSSNameSpi |
getName()
Returns the principal name for this credential. |
int |
getUsage()
Returns the credential usage. |
void |
init(GSSNameSpi desiredName,
int initLifetime,
int acceptLifetime,
int usage)
Initialized the credential object. |
Method Detail |
---|
void init(GSSNameSpi desiredName, int initLifetime, int acceptLifetime, int usage) throws GSSException
desiredName
- - desired name of the principalinitLifetime
- - desired lifetime for the init
credential; 0 signals use mechanism defaultacceptLifetime
- - desired lifetime for the accept
credential; 0 signals use mechanism defaultusage
- - the desired usage for this credential
-
- GSSException may be thrown
GSSException
void dispose() throws GSSException
GSSException
- with major codes NO_CRED and FAILUREGSSNameSpi getName() throws GSSException
GSSException
- may be thrownint getInitLifetime() throws GSSException
GSSException
- may be thrownint getAcceptLifetime() throws GSSException
GSSException
- may be thrownint getLifetime() throws GSSException
GSSException
- may be thrownint getUsage() throws GSSException
GSSException
- may be thrownOid getMechanism()
GSSException
- may be thrown
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |