public class

GSSCredElement

extends Object
implements GSSCredentialSpi
java.lang.Object
   ↳ sun.security.mule.jgss.wrapper.GSSCredElement

Class Overview

This class is essentially a wrapper class for the gss_cred_id_t structure of the native GSS library.

Summary

Fields
private GSSLibStub cStub
private GSSNameElement name
long pCred
private int usage
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.
Oid getMechanism()
Returns the oid representing the underlying credential mechanism oid.
GSSNameElement 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.
String toString()
Protected Methods
void finalize()
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.security.mule.jgss.spi.GSSCredentialSpi

Fields

private GSSLibStub cStub

private GSSNameElement name

long pCred

private int usage

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 Oid getMechanism ()

Returns the oid representing the underlying credential mechanism oid.

Returns
  • the Oid for this credential mechanism

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

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

public String toString ()

Protected Methods

protected void finalize ()

Throws
Throwable