org.globus.wsrf.impl.security.authentication.secureconv.service
Class SecurityContext
java.lang.Object
org.globus.wsrf.impl.security.authentication.secureconv.service.SecurityContext
- All Implemented Interfaces:
- Resource, ResourceIdentifier
- public class SecurityContext
- extends java.lang.Object
- implements Resource, ResourceIdentifier
Associates a GSSContext with a context Id. It is used for GSI secure
converstation. For internal use only.
|
Field Summary |
private org.ietf.jgss.GSSContext |
context
|
private java.lang.String |
contextId
|
|
Constructor Summary |
SecurityContext(org.ietf.jgss.GSSContext context,
java.lang.String contextId)
|
|
Method Summary |
org.ietf.jgss.GSSContext |
getContext()
|
org.ietf.jgss.GSSCredential |
getDelegatedCredential()
A convinience function to extract delegated user
credential if any |
java.lang.Object |
getID()
Returns the unique id of the resource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
private org.ietf.jgss.GSSContext context
contextId
private java.lang.String contextId
SecurityContext
public SecurityContext(org.ietf.jgss.GSSContext context,
java.lang.String contextId)
getContext
public org.ietf.jgss.GSSContext getContext()
getID
public java.lang.Object getID()
- Description copied from interface:
ResourceIdentifier
- Returns the unique id of the resource. In most cases this value should
match value returned by
ResoureKey.getValue().
- Specified by:
getID in interface ResourceIdentifier
- Returns:
- the id of the resource.
getDelegatedCredential
public org.ietf.jgss.GSSCredential getDelegatedCredential()
throws java.lang.Exception
- A convinience function to extract delegated user
credential if any
- Returns:
- the delegated user credential. null if delegation
was not performed.
- Throws:
java.lang.Exception