|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcc.saml.SAML
cc.saml.SAMLAssertion
cc.saml.SAMLProtocol
public class SAMLProtocol
Simple examples of coding to the OpenSAML API. Methods here can write SAMLP queries and responses for each of the three main types: authentication, authorization decision, and attributes.
| Field Summary | |
|---|---|
private static java.lang.String |
QUERY_SUFFIX
|
private static java.lang.String |
RESPONSE_SUFFIX
|
| Constructor Summary | |
|---|---|
SAMLProtocol()
|
|
| Method Summary | |
|---|---|
AttributeQuery |
createStockAttributeQuery()
Creates a file whose contents are a SAML attribute query. |
AuthnQuery |
createStockAuthnQuery()
Creates a file whose contents are a SAML authentication query. |
AuthzDecisionQuery |
createStockAuthzDecisionQuery()
Creates a file whose contents are a SAML authorization-decision query. |
private static void |
die()
|
static void |
main(java.lang.String[] args)
Parses the command line for instructions to write a SAML query or response in one of the three main types, and for a base filename. |
void |
printResponse(Assertion assertion,
java.lang.String filename)
Helper method to generate and pretty-print a response, based on a given query (for our inResponseTo value) and an assertion. |
| Methods inherited from class cc.saml.SAMLAssertion |
|---|
createStockAttributeAssertion, createStockAuthnAssertion, createStockAuthzDecisionAssertion, readAttributeAssertion, readAuthnAssertion, readAuthzDecisionAssertion |
| Methods inherited from class cc.saml.SAML |
|---|
addAttribute, addToElement, asDOMDocument, create, createAssertion, createAttributeAssertion, createAuthnAssertion, createResponse, createResponse, createResponse, createResponse, createSubject, fromElement, printToFile, readFromFile, spawnIssuer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String QUERY_SUFFIX
private static final java.lang.String RESPONSE_SUFFIX
| Constructor Detail |
|---|
public SAMLProtocol()
| Method Detail |
|---|
private static void die()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public void printResponse(Assertion assertion,
java.lang.String filename)
throws java.io.IOException,
MarshallingException,
javax.xml.transform.TransformerException
java.io.IOException
MarshallingException
javax.xml.transform.TransformerException
public AuthnQuery createStockAuthnQuery()
throws java.lang.Exception
java.lang.Exception
public AttributeQuery createStockAttributeQuery()
throws java.lang.Exception
java.lang.Exception
public AuthzDecisionQuery createStockAuthzDecisionQuery()
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||