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

public Class JgssExtender

extends Object
Class Inheritance
Imports
org.ietf.jgss.GSSContext, .GSSCredential

The extending point of basic JGSS-API.

If a module wants to extend basic JGSS-API classes, it should extend this class and register itself as "the extender" using the setExtender method. When various GSSManager.createXXX methods are called, they will call "the extender"'s wrap methods to create objects of extended types instead of basic types.

We have only one extension now defined in com.sun.security.jgss, and the registering process is triggered in GSSManagerImpl by calling Class.forName("com.sun.security.jgss.Extender"). Only GSSContext and GSSCredential are extended now.

The setExtender method should be called before any JGSS call.

Field Summary

Modifier and TypeField and Description
private static volatile JgssExtender

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static JgssExtender

Returns:

the extender
getExtender
()

Gets "the extender".

protected static void
setExtender(JgssExtender theOne)

Set "the extender" so that GSSManager can create extended objects.

public GSSCredential
wrap(GSSCredential cred)

Wraps a plain GSSCredential object into an extended type.

public GSSContext
wrap(GSSContext ctxt)

Wraps a plain GSSContext object into an extended type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

theOneback to summary
private static volatile JgssExtender theOne

Constructor Detail

JgssExtenderback to summary
public JgssExtender()

Method Detail

getExtenderback to summary
public static JgssExtender getExtender()

Gets "the extender". GSSManager calls this method so that it can wrap basic objects into extended objects.

Returns:JgssExtender

the extender

setExtenderback to summary
protected static void setExtender(JgssExtender theOne)

Set "the extender" so that GSSManager can create extended objects.

wrapback to summary
public GSSCredential wrap(GSSCredential cred)

Wraps a plain GSSCredential object into an extended type.

wrapback to summary
public GSSContext wrap(GSSContext ctxt)

Wraps a plain GSSContext object into an extended type.