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.
| Modifier and Type | Field and Description |
|---|---|
| private static volatile JgssExtender |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static JgssExtender | |
| protected static void | |
| public GSSCredential | |
| public GSSContext |
| theOne | back to summary |
|---|---|
| private static volatile JgssExtender theOne | |
| JgssExtender | back to summary |
|---|---|
| public JgssExtender() | |
| getExtender | back to summary |
|---|---|
| public static JgssExtender getExtender() Gets "the extender". GSSManager calls this method so that it can wrap basic objects into extended objects.
| |
| setExtender | back to summary |
|---|---|
| protected static void setExtender(JgssExtender theOne) Set "the extender" so that GSSManager can create extended objects. | |
| wrap | back to summary |
|---|---|
| public GSSCredential wrap(GSSCredential cred) Wraps a plain GSSCredential object into an extended type. | |
| wrap | back to summary |
|---|---|
| public GSSContext wrap(GSSContext ctxt) Wraps a plain GSSContext object into an extended type. | |