org.wso2.solutions.identity.sts.saml
Class SAMLTokenDirector
java.lang.Object
org.wso2.solutions.identity.sts.saml.SAMLTokenDirector
public class SAMLTokenDirector
- extends java.lang.Object
Method Summary |
org.w3c.dom.Element |
createSAMLToken(org.joda.time.DateTime notBefore,
org.joda.time.DateTime notAfter,
java.lang.String assertionId)
|
static java.lang.String |
getPPID(org.apache.rahas.RahasData rahasData,
java.lang.String name,
org.apache.axiom.om.OMElement appliesToEpr)
Obtain the ppid for the given user for the given rp. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAMLTokenDirector
public SAMLTokenDirector(SAMLTokenBuilder builder,
org.apache.rahas.RahasData rData,
IdentityProviderData iData)
throws IdentityProviderException
- Throws:
IdentityProviderException
createSAMLToken
public org.w3c.dom.Element createSAMLToken(org.joda.time.DateTime notBefore,
org.joda.time.DateTime notAfter,
java.lang.String assertionId)
throws IdentityProviderException
- Throws:
IdentityProviderException
getPPID
public static java.lang.String getPPID(org.apache.rahas.RahasData rahasData,
java.lang.String name,
org.apache.axiom.om.OMElement appliesToEpr)
throws IdentityProviderException
- Obtain the ppid for the given user for the given rp.
If this is the first time user requesting for a token then a new PPID
value will be created.
- Parameters:
rahasData
- WS-Trust information in the issue request.name
- Name of the user/subject.appliesToEpr
- EPR element in wst:AppliesTo element.
- Returns:
- PPID value. If there's already an issued token then the ppid
value will be reused.
- Throws:
IdentityProviderException