|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.gridshib.security.x509.GlobusSAMLCredential
org.teragrid.ncsa.gridshib.security.x509.GatewayCredential
public class GatewayCredential
A GatewayCredential is a proxy credential
with a SAML assertion bound to a non-critical certificate
extension. A GatewayCredential is a special
type of GlobusSAMLCredential having a mail
attribute and other distinguishing characteristics.
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
logger
|
static String |
MAIL
The MAIL constant is the formal name of
the attribute that holds the user's e-mail address. |
| Fields inherited from class org.globus.gridshib.security.x509.GlobusSAMLCredential |
|---|
HOLDER_OF_KEY, SENDER_VOUCHES |
| Constructor Summary | |
|---|---|
GatewayCredential(String username)
Creates a gateway credential instance. |
|
| Method Summary | |
|---|---|
boolean |
addEmailAddress(String emailAddress)
Formulates the given e-mail address as a single-valued SAML attribute and adds this attribute to this GatewayCredential instance. |
boolean |
addEmailAddresses(String[] emailAddresses)
Formulates the given e-mail addresses as a multi-valued SAML attribute and adds this attribute to this GatewayCredential instance. |
SelfIssuedAssertion |
getSAMLToken(boolean forceNewToken)
Checks for required attributes before self-issuing a SAML token. |
| Methods inherited from class org.globus.gridshib.security.x509.GlobusSAMLCredential |
|---|
addAttribute, getAttributes, getCredential, getDefaultX509Lifetime, getFormat, getFormattedName, getNameQualifier, getSAMLExtension, getSAMLExtension, getSAMLToken, getTemplate, getUsername, isHolderOfKey, isSenderVouches, issue, issue, setAttributes, setAuthnContext, setCredential, setDefaultConfigFile, setDefaultCredential, setFormat, setNameQualifier, setSAMLLifetime, setSSOResponseFile, setX509Lifetime, setXMLFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static org.apache.commons.logging.Log logger
public static final String MAIL
MAIL constant is the formal name of
the attribute that holds the user's e-mail address.
This attribute name is based on an OID defined by the
eduPerson
specification and the
MACE-Dir
Attribute Profile for SAML 1.x.
The legacy name of this attribute is
urn:mace:dir:attribute-def:mailHence, this attribute has the following "friendly name":
FriendlyName="mail".
| Constructor Detail |
|---|
public GatewayCredential(String username)
throws GlobusSAMLException
username - the name of the authenticated user,
usually the portal login name
GlobusSAMLException - if unable to create the credential| Method Detail |
|---|
public boolean addEmailAddress(String emailAddress)
GatewayCredential instance.
emailAddress - a (non-null) e-mail address
IllegalArgumentException - if the given e-mail address is nullpublic boolean addEmailAddresses(String[] emailAddresses)
GatewayCredential instance. If only one
e-mail address is provided, this method calls
addEmailAddress(String) instead.
emailAddresses - a (non-null and nonempty) array
of e-mail addresses
IllegalArgumentException - if the given array of e-mail addresses
is null or empty
public SelfIssuedAssertion getSAMLToken(boolean forceNewToken)
throws GlobusSAMLException
getSAMLToken in class GlobusSAMLCredentialforceNewToken - if true, returns a fresh token
regardless of the cache state
GlobusSAMLException - if unable to get the SAML token
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||