|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.identity.federation.api.saml.v2.response.SAML2Response
public class SAML2Response
API for dealing with SAML2 Response objects
| Constructor Summary | |
|---|---|
SAML2Response()
|
|
| Method Summary | |
|---|---|
org.w3c.dom.Document |
convert(EncryptedElementType encryptedElementType)
|
org.w3c.dom.Document |
convert(ResponseType responseType)
|
AttributeStatementType |
createAttributeStatement(java.util.List<java.lang.String> roles)
Given a set of roles, create an attribute statement |
ResponseType |
createResponseType(java.lang.String ID,
IssuerInfoHolder issuerInfo,
AssertionType assertion)
|
ResponseType |
createResponseType(java.lang.String ID,
SPInfoHolder sp,
IDPInfoHolder idp,
IssuerInfoHolder issuerInfo)
Create a ResponseType |
void |
createTimedConditions(AssertionType assertion,
long durationInMilis)
Add validity conditions to the SAML2 Assertion |
AssertionType |
getAssertionType(java.io.InputStream is)
|
EncryptedElementType |
getEncryptedAssertion(java.io.InputStream is)
Get an encrypted assertion from the stream |
ResponseType |
getResponseType(java.io.InputStream is)
Read a ResponseType from an input stream |
void |
marshall(ResponseType responseType,
java.io.OutputStream os)
Marshall the response type to the output stream |
void |
marshall(ResponseType responseType,
java.io.Writer writer)
Marshall the ResponseType into a writer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SAML2Response()
| Method Detail |
|---|
public AttributeStatementType createAttributeStatement(java.util.List<java.lang.String> roles)
roles -
public ResponseType createResponseType(java.lang.String ID,
SPInfoHolder sp,
IDPInfoHolder idp,
IssuerInfoHolder issuerInfo)
throws java.lang.Exception
ID - id of the responsesp - holder with the information about the Service Provideridp - holder with the information on the Identity ProviderissuerInfo - holder with information on the issuer
java.lang.Exception
public ResponseType createResponseType(java.lang.String ID,
IssuerInfoHolder issuerInfo,
AssertionType assertion)
throws java.lang.Exception
java.lang.Exception
public void createTimedConditions(AssertionType assertion,
long durationInMilis)
throws java.lang.Exception
assertion - durationInMilis -
java.lang.Exception
public EncryptedElementType getEncryptedAssertion(java.io.InputStream is)
throws java.lang.Exception
is -
java.lang.Exception
public AssertionType getAssertionType(java.io.InputStream is)
throws java.lang.Exception
java.lang.Exception
public ResponseType getResponseType(java.io.InputStream is)
throws java.lang.Exception
is -
java.lang.Exception
public org.w3c.dom.Document convert(EncryptedElementType encryptedElementType)
throws java.lang.Exception
java.lang.Exception
public org.w3c.dom.Document convert(ResponseType responseType)
throws java.lang.Exception
java.lang.Exception
public void marshall(ResponseType responseType,
java.io.OutputStream os)
throws java.lang.Exception
Note: JAXB marshaller by default picks up arbitrary namespace prefixes (ns2,ns3 etc). The NamespacePrefixMapper is a Sun RI customization that may be needed (this is a TODO) to get a prefix such as saml, samlp
responseType - os -
java.lang.Exception
public void marshall(ResponseType responseType,
java.io.Writer writer)
throws java.lang.Exception
responseType - writer -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||