|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.gsi.gssapi.JaasGssUtil
public class JaasGssUtil
An utility class for handling JAAS Subject with GSSCredential.
Constructor Summary | |
---|---|
JaasGssUtil()
|
Method Summary | |
---|---|
static javax.security.auth.Subject |
createSubject(org.ietf.jgss.GSSCredential cred)
Creates a new Subject object from specified
GSSCredential . |
static javax.security.auth.Subject |
createSubject(org.ietf.jgss.GSSName name,
org.ietf.jgss.GSSCredential cred)
Creates a new Subject object from specified
GSSCredential and GSSName . |
static org.ietf.jgss.GSSCredential |
getCredential(javax.security.auth.Subject subject)
Retrieves the first GSSCredential from the
private credential set of the specified Subject
object. |
static org.globus.gsi.gssapi.jaas.GlobusPrincipal |
toGlobusPrincipal(org.ietf.jgss.GSSName name)
Converts the specified GSSName to GlobusPrincipal. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JaasGssUtil()
Method Detail |
---|
public static javax.security.auth.Subject createSubject(org.ietf.jgss.GSSCredential cred) throws org.ietf.jgss.GSSException
Subject
object from specified
GSSCredential
. The GSSCredential is added
to the private credential set of the Subject object.
Also, if the GSSCredential.getName() is of type
org.globus.gsi.gssapi.GlobusGSSName
a org.globus.gsi.jaas.GlobusPrincipal
is added to the principals set of the Subject object.
org.ietf.jgss.GSSException
public static javax.security.auth.Subject createSubject(org.ietf.jgss.GSSName name, org.ietf.jgss.GSSCredential cred) throws org.ietf.jgss.GSSException
Subject
object from specified
GSSCredential
and GSSName
.
If the GSSCredential is specified it is added
to the private credential set of the Subject object.
Also, if the GSSCredential.getName() is of type
org.globus.gsi.gssapi.GlobusGSSName
and the
GSSName parameter was not specified a
org.globus.gsi.jaas.GlobusPrincipal
is added to the principals set of the Subject object.
If the GSSName parameter was specified of type
org.globus.gsi.gssapi.GlobusGSSName
a
org.globus.gsi.jaas.GlobusPrincipal
is added to the principals set of the Subject object.
org.ietf.jgss.GSSException
public static org.globus.gsi.gssapi.jaas.GlobusPrincipal toGlobusPrincipal(org.ietf.jgss.GSSName name)
org.globus.gsi.gssapi.GlobusGSSName
and the name is not anonymous.
public static org.ietf.jgss.GSSCredential getCredential(javax.security.auth.Subject subject)
GSSCredential
from the
private credential set of the specified Subject
object.
GSSCredential
. Might be null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |