public class

SpNegoCredElement

extends Object
implements GSSCredentialSpi
java.lang.Object
   ↳ sun.security.jgss.spnego.SpNegoCredElement

Class Overview

This class is the cred element implementation for SPNEGO mech. NOTE: The current implementation can only support one mechanism. This should be changed once multi-mechanism support is needed.

Summary

Public Methods
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.
GSSCredentialSpi getInternalCred()
Oid getMechanism()
Returns the oid representing the underlying credential mechanism oid.
GSSNameSpi getName()
Returns the principal name for this credential.
Provider getProvider()
boolean isAcceptorCredential()
Determines if this credential element can be used by a context acceptor.
boolean isInitiatorCredential()
Determines if this credential element can be used by a context initiator.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.security.jgss.spi.GSSCredentialSpi

Public Methods

public void dispose ()

Called to invalidate this credential element and release any system recourses and cryptographic information owned by the credential.

Throws
GSSException

public int getAcceptLifetime ()

Returns the accept lifetime remaining.

Returns
  • the accept lifetime remaining in seconds
Throws
GSSException

public int getInitLifetime ()

Returns the init lifetime remaining.

Returns
  • the init lifetime remaining in seconds
Throws
GSSException

public GSSCredentialSpi getInternalCred ()

public Oid getMechanism ()

Returns the oid representing the underlying credential mechanism oid.

Returns
  • the Oid for this credential mechanism

public 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

public Provider getProvider ()

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