|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.common.SecurityContext
A wrapper for org.ietf.jgss
Grid security credential
objects.
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
|
private static DAILogger |
LOG
|
private org.ietf.jgss.GSSCredential |
mCredential
|
private java.lang.String |
mDistinguishedName
|
static java.lang.String |
NO_CERTIFICATE_PROVIDED
Default distinguished name if none can be found |
Constructor Summary | |
SecurityContext(java.lang.String distinguishedName,
org.ietf.jgss.GSSCredential credential)
Constructor that takes a distinguished name and a credential for this context. |
Method Summary | |
org.ietf.jgss.GSSCredential |
getCredential()
Gets the credential. |
java.lang.String |
getDN()
Gets the distinguished name. |
private java.lang.String |
getDNFromCredential(org.ietf.jgss.GSSCredential credential)
If the credential isn't null and contains a
distinguished name then return the name. |
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 |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static final DAILogger LOG
public static final java.lang.String NO_CERTIFICATE_PROVIDED
private java.lang.String mDistinguishedName
private org.ietf.jgss.GSSCredential mCredential
Constructor Detail |
public SecurityContext(java.lang.String distinguishedName, org.ietf.jgss.GSSCredential credential)
null
and none can be extracted from the credential
then the default of NO_CERTIFICATE_PROVIDED
is
set.
distinguishedName
- The distinguished name of the caller.credential
- The credential provided by the caller.Method Detail |
public org.ietf.jgss.GSSCredential getCredential()
public java.lang.String getDN()
public void setCredential(org.ietf.jgss.GSSCredential credential)
credential
- The credential.private java.lang.String getDNFromCredential(org.ietf.jgss.GSSCredential credential)
null
and contains a
distinguished name then return the name.
credential
- The credential.
public void setDN(java.lang.String distinguishedName)
null
the default of
NO_CERTIFICATE_PROVIDED
is set.
distinguishedName
- The distinguished name.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |