public class SAML11RequestedSecurityToken extends Object implements RequestedSecurityToken
Modifier and Type | Field and Description |
---|---|
protected Assertion |
assertion |
protected Element |
assertionE |
protected boolean |
signed |
protected String |
xmlString |
Constructor and Description |
---|
SAML11RequestedSecurityToken(Node token)
Creates a SAML11RequestedSecurityToken given a DOM Node
|
SAML11RequestedSecurityToken(String realm,
String spTokenIssuerName,
String idpEntityId,
int notBeforeSkew,
int effectiveTime,
String certAlias,
String authMethod,
Date authInstant,
NameIdentifier ni,
List attributes)
Creates a SAML11RequestedSecurityToken.
|
Modifier and Type | Method and Description |
---|---|
Assertion |
getAssertion() |
List |
getAttributes() |
String |
getIssuer() |
String |
getTokenId() |
String |
toString()
This method marshalls the token, returning a String comprising the
textual XML representation.
|
Map<String,Object> |
verifyToken(String realm,
String hostEntityId,
int timeskew)
Verifies the token's validity, checking the signature, validity period
etc.
|
protected Assertion assertion
protected String xmlString
protected boolean signed
protected Element assertionE
public SAML11RequestedSecurityToken(Node token) throws WSFederationException
token
- a DOM Node representing a RequestedSecurityTokenWSFederationException
public SAML11RequestedSecurityToken(String realm, String spTokenIssuerName, String idpEntityId, int notBeforeSkew, int effectiveTime, String certAlias, String authMethod, Date authInstant, NameIdentifier ni, List attributes) throws WSFederationException
realm
- the realm of the entities.spTokenIssuerName
- The name of the SP Token Issuer.idpEntityId
- identity provifer entity ID - issuer of the token.notBeforeSkew
- number of seconds to subtract from current time
to form Assertion notBefore time.effectiveTime
- length of time, in seconds, from Assertion's
notBefore time to its notOnOrAfter time.certAlias
- alias of the signing certificate. null means do not
sign the assertionauthMethod
- mechanism by which the subject authenticated to the
identity providerauthInstant
- time at which the subject authenticated to the
identity providerni
- SAML 1.1 NameIdentitifer for the subjectattributes
- List of com.sun.identity.saml.assertion.Attribute to
include in the AssertionWSFederationException
- in
case of error.public String getTokenId()
getTokenId
in interface RequestedSecurityToken
public String getIssuer()
getIssuer
in interface RequestedSecurityToken
public List getAttributes()
getAttributes
in interface RequestedSecurityToken
com.sun.identity.saml.assertion.Attribute
public Assertion getAssertion()
public String toString()
public Map<String,Object> verifyToken(String realm, String hostEntityId, int timeskew) throws WSFederationException
verifyToken
in interface RequestedSecurityToken
realm
- the realm of the local entityhostEntityId
- the local entity IDtimeskew
- permitted skew between service provider and identity
provider clocks, in secondsWSFederationException
- in
case of any error - invalid token signature, token expired etc.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.