APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.jgss.spnego

public Class SpNegoCredElement

extends Object
implements GSSCredentialSpi
Class Inheritance
All Implemented Interfaces
sun.security.jgss.spi.GSSCredentialSpi
Imports
org.ietf.jgss.*, java.security.Provider, sun.security.jgss.GSSUtil, sun.security.jgss.spi.GSSNameSpi, .GSSCredentialSpi

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.

Author
Valerie Peng
Since
1.6

Field Summary

Modifier and TypeField and Description
private final GSSCredentialSpi

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Implements sun.security.jgss.spi.GSSCredentialSpi.dispose.

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

public int
getAcceptLifetime()

Implements sun.security.jgss.spi.GSSCredentialSpi.getAcceptLifetime.

Returns the accept lifetime remaining.

public int
getInitLifetime()

Implements sun.security.jgss.spi.GSSCredentialSpi.getInitLifetime.

Returns the init lifetime remaining.

public GSSCredentialSpi
pack-priv Oid
public Oid
getMechanism()

Implements sun.security.jgss.spi.GSSCredentialSpi.getMechanism.

Returns the oid representing the underlying credential mechanism oid.

public GSSNameSpi
getName()

Implements sun.security.jgss.spi.GSSCredentialSpi.getName.

Returns the principal name for this credential.

public Provider
public GSSCredentialSpi
impersonate(GSSNameSpi name)

Implements sun.security.jgss.spi.GSSCredentialSpi.impersonate.

Impersonates another client.

public boolean
isAcceptorCredential()

Implements sun.security.jgss.spi.GSSCredentialSpi.isAcceptorCredential.

Determines if this credential element can be used by a context acceptor.

public boolean
isInitiatorCredential()

Implements sun.security.jgss.spi.GSSCredentialSpi.isInitiatorCredential.

Determines if this credential element can be used by a context initiator.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

credback to summary
private final GSSCredentialSpi cred

Constructor Detail

SpNegoCredElementback to summary
public SpNegoCredElement(GSSCredentialSpi cred) throws GSSException

Method Detail

disposeback to summary
public void dispose() throws GSSException

Implements sun.security.jgss.spi.GSSCredentialSpi.dispose.

Doc from sun.security.jgss.spi.GSSCredentialSpi.dispose.

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

Exceptions
GSSException:
with major codes NO_CRED and FAILURE
getAcceptLifetimeback to summary
public int getAcceptLifetime() throws GSSException

Implements sun.security.jgss.spi.GSSCredentialSpi.getAcceptLifetime.

Doc from sun.security.jgss.spi.GSSCredentialSpi.getAcceptLifetime.

Returns the accept lifetime remaining.

Exceptions
GSSException:
may be thrown
getInitLifetimeback to summary
public int getInitLifetime() throws GSSException

Implements sun.security.jgss.spi.GSSCredentialSpi.getInitLifetime.

Doc from sun.security.jgss.spi.GSSCredentialSpi.getInitLifetime.

Returns the init lifetime remaining.

Exceptions
GSSException:
may be thrown
getInternalCredback to summary
public GSSCredentialSpi getInternalCred()
getInternalMechback to summary
pack-priv Oid getInternalMech()
getMechanismback to summary
public Oid getMechanism()

Implements sun.security.jgss.spi.GSSCredentialSpi.getMechanism.

Doc from sun.security.jgss.spi.GSSCredentialSpi.getMechanism.

Returns the oid representing the underlying credential mechanism oid.

getNameback to summary
public GSSNameSpi getName() throws GSSException

Implements sun.security.jgss.spi.GSSCredentialSpi.getName.

Doc from sun.security.jgss.spi.GSSCredentialSpi.getName.

Returns the principal name for this credential. The name is in mechanism specific format.

Exceptions
GSSException:
may be thrown
getProviderback to summary
public Provider getProvider()

Implements sun.security.jgss.spi.GSSCredentialSpi.getProvider.

impersonateback to summary
public GSSCredentialSpi impersonate(GSSNameSpi name) throws GSSException

Implements sun.security.jgss.spi.GSSCredentialSpi.impersonate.

Doc from sun.security.jgss.spi.GSSCredentialSpi.impersonate.

Impersonates another client.

Annotations
@Override
Exceptions
GSSException:
may be thrown
isAcceptorCredentialback to summary
public boolean isAcceptorCredential() throws GSSException

Implements sun.security.jgss.spi.GSSCredentialSpi.isAcceptorCredential.

Doc from sun.security.jgss.spi.GSSCredentialSpi.isAcceptorCredential.

Determines if this credential element can be used by a context acceptor.

isInitiatorCredentialback to summary
public boolean isInitiatorCredential() throws GSSException

Implements sun.security.jgss.spi.GSSCredentialSpi.isInitiatorCredential.

Doc from sun.security.jgss.spi.GSSCredentialSpi.isInitiatorCredential.

Determines if this credential element can be used by a context initiator.