|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcc.saml.SAML
cc.saml.SAMLAssertion
public class SAMLAssertion
Simple examples of coding to the OpenSAML API. Methods here can write and parse each of the three main assertion types: authentication, authorization decision, and attributes.
| Constructor Summary | |
|---|---|
SAMLAssertion()
|
|
| Method Summary | |
|---|---|
Assertion |
createStockAttributeAssertion()
Creates a file whose contents are a SAML attribute assertion. |
Assertion |
createStockAuthnAssertion()
Creates a file whose contents are a SAML authentication assertion. |
Assertion |
createStockAuthzDecisionAssertion()
Creates a file whose contents are a SAML authorization-decision assertion. |
private static void |
die()
|
static void |
main(java.lang.String[] args)
Parse the command line for instructions to write or read one of the three types of assertions and for a target filename. |
void |
readAttributeAssertion(java.lang.String filename)
Parses a SAML attribute assertion as found in a file, and prints out all attributes. |
void |
readAuthnAssertion(java.lang.String filename)
Parses a SAML authentication assertion as found in a file, and prints out information about issuer, subject, and authentication context. |
void |
readAuthzDecisionAssertion(java.lang.String filename)
Parses a SAML authorization-decision assertion as found in a file, and prints out the essential information. |
| 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 |
| Constructor Detail |
|---|
public SAMLAssertion()
| Method Detail |
|---|
private static void die()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
public Assertion createStockAuthnAssertion()
throws java.lang.Exception
java.lang.Exception
public void readAuthnAssertion(java.lang.String filename)
throws java.lang.Exception
java.lang.Exception
public Assertion createStockAttributeAssertion()
throws java.lang.Exception
java.lang.Exception
public void readAttributeAssertion(java.lang.String filename)
throws java.lang.Exception
java.lang.Exception
public Assertion createStockAuthzDecisionAssertion()
throws java.lang.Exception
java.lang.Exception
public void readAuthzDecisionAssertion(java.lang.String filename)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||