public class

GSSCredentialImpl

extends Object
implements GSSCredential
java.lang.Object
   ↳ sun.security.mule.jgss.GSSCredentialImpl

Summary

[Expand]
Inherited Constants
From interface org.ietf.jgss.GSSCredential
Fields
private boolean destroyed
private GSSManagerImpl gssManager
private Hashtable<GSSCredentialImpl.SearchKey, GSSCredentialSpi> hashtable
private GSSCredentialSpi tempCred
Public Constructors
GSSCredentialImpl(GSSManagerImpl gssManager, GSSCredentialSpi mechElement)
Public Methods
void add(GSSName name, int initLifetime, int acceptLifetime, Oid mech, int usage)
void dispose()
boolean equals(Object another)
GSSCredentialSpi getElement(Oid mechOid, boolean initiate)
Returns the specified mechanism's credential-element.
Oid[] getMechs()
GSSName getName()
GSSName getName(Oid mech)
int getRemainingAcceptLifetime(Oid mech)
int getRemainingInitLifetime(Oid mech)
int getRemainingLifetime()
Returns the remaining lifetime of this credential.
int getUsage(Oid mech)
int getUsage()
Returns the usage mode for this credential.
int hashCode()
Returns a hashcode value for this GSSCredential.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.ietf.jgss.GSSCredential

Fields

private boolean destroyed

private GSSManagerImpl gssManager

private Hashtable<GSSCredentialImpl.SearchKey, GSSCredentialSpi> hashtable

private GSSCredentialSpi tempCred

Public Constructors

public GSSCredentialImpl (GSSManagerImpl gssManager, GSSCredentialSpi mechElement)

Parameters
gssManager
mechElement
Throws
GSSException

Public Methods

public void add (GSSName name, int initLifetime, int acceptLifetime, Oid mech, int usage)

Parameters
name
initLifetime
acceptLifetime
mech
usage
Throws
GSSException

public void dispose ()

Throws
GSSException

public boolean equals (Object another)

Parameters
another

public GSSCredentialSpi getElement (Oid mechOid, boolean initiate)

Returns the specified mechanism's credential-element.

Parameters
mechOid - the oid for mechanism to retrieve
initiate
Returns
  • mechanism credential object
Throws
GSSException of invalid mechanism

public Oid[] getMechs ()

Throws
GSSException

public GSSName getName ()

Throws
GSSException

public GSSName getName (Oid mech)

Parameters
mech
Throws
GSSException

public int getRemainingAcceptLifetime (Oid mech)

Parameters
mech
Throws
GSSException

public int getRemainingInitLifetime (Oid mech)

Parameters
mech
Throws
GSSException

public int getRemainingLifetime ()

Returns the remaining lifetime of this credential. The remaining lifetime is defined as the minimum lifetime, either for initiate or for accept, across all elements contained in it. Not terribly useful, but required by GSS-API.

Throws
GSSException

public int getUsage (Oid mech)

Parameters
mech
Throws
GSSException

public int getUsage ()

Returns the usage mode for this credential. Returns INITIATE_AND_ACCEPT if any one element contained in it supports INITIATE_AND_ACCEPT or if two different elements exist where one support INITIATE_ONLY and the other supports ACCEPT_ONLY.

Throws
GSSException

public int hashCode ()

Returns a hashcode value for this GSSCredential.

Returns
  • a hashCode value

public String toString ()