uk.org.ogsadai.common
Class SecurityContext
java.lang.Object
|
+--uk.org.ogsadai.common.SecurityContext
- public class SecurityContext
- extends java.lang.Object
|
Constructor Summary |
SecurityContext(java.lang.String distinguishedName,
org.ietf.jgss.GSSCredential credential)
Constructor that takes a distinguished name and a GSSCredential object. |
|
Method Summary |
org.ietf.jgss.GSSCredential |
getCredential()
|
java.lang.String |
getDN()
|
void |
setCredential(org.ietf.jgss.GSSCredential credential)
Sets the credential for this security context. |
void |
setDN(java.lang.String distinguishedName)
Sets the distinguished name for this context. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_CERTIFICATE_PROVIDED
public static final java.lang.String NO_CERTIFICATE_PROVIDED
- See Also:
- Constant Field Values
SecurityContext
public SecurityContext(java.lang.String distinguishedName,
org.ietf.jgss.GSSCredential credential)
- Constructor that takes a distinguished name and a GSSCredential object. If DN is null,
and no DN can be retrieved from the credential, the default DN
NO_CERTIFICATE_PROVIDED is set.
- Parameters:
distinguishedName - The distinguished name of the callercredential - The GSSCredential for this call
getCredential
public org.ietf.jgss.GSSCredential getCredential()
- Returns:
- the GSSCredential
getDN
public java.lang.String getDN()
- Returns:
- the distinguished name
setCredential
public void setCredential(org.ietf.jgss.GSSCredential credential)
- Sets the credential for this security context. If a distinguished name
can be retrieved from this credential, it is also set in this context.
- Parameters:
credential - The GSSCredential
setDN
public void setDN(java.lang.String distinguishedName)
- Sets the distinguished name for this context. If DN is null,
the default DN NO_CERTIFICATE_PROVIDED is set.
- Parameters:
distinguishedName - The distinguished name of the caller