| java.lang.Object com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.AssertionTypeImpl com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.AssertionImpl com.sun.xml.wss.saml.assertion.saml11.jaxb10.Assertion
Assertion | public class Assertion extends com.sun.xml.wss.saml.internal.saml11.jaxb10.impl.AssertionImpl implements com.sun.xml.wss.saml.Assertion(Code) | | This object stands for Assertion element. An Assertion is a package
of information that supplies one or more Statement made by an
issuer. There are three kinds of assertions Au [java]
[java]
[java]
[java] CN=SAML User,OU=SU,O=SAML
User,L=Los Angeles,ST=CA,C=US
[java]
[java] urn:oasis:names:tc:SAML:1.0:cm:sender-vouches
[java]
[java]
[java]
[java] ATTRIBUTE1
[java]
thentication, Authorization
Decision and Attribute assertion.
|
Field Summary | |
final protected static Logger | log |
Constructor Summary | |
public | Assertion(AssertionImpl assertion) | public | Assertion(String assertionID, java.lang.String issuer, Calendar issueInstant, Conditions conditions, Advice advice, List statements) This constructor is used to populate the data members: the
assertionID , the issuer, time when assertion issued,
the conditions when creating a new assertion , Advice
applicable to this Assertion and a set of
Statement (s) in the assertion.
Parameters: assertionID - AssertionID object contained within thisAssertion if null its generated internally. Parameters: issuer - The issuer of this assertion. Parameters: issueInstant - Time instant of the issue. |
Assertion | public Assertion(String assertionID, java.lang.String issuer, Calendar issueInstant, Conditions conditions, Advice advice, List statements) throws SAMLException(Code) | | This constructor is used to populate the data members: the
assertionID , the issuer, time when assertion issued,
the conditions when creating a new assertion , Advice
applicable to this Assertion and a set of
Statement (s) in the assertion.
Parameters: assertionID - AssertionID object contained within thisAssertion if null its generated internally. Parameters: issuer - The issuer of this assertion. Parameters: issueInstant - Time instant of the issue. It has typedateTime which is built in to the W3C XML SchemaTypes specification. if null, current time is used. Parameters: conditions - Conditions under which the thisAssertion is valid. Parameters: advice - Advice applicable for thisAssertion . Parameters: statements - List of Statement objects within thisAssertion . It could be of typeAuthenticationStatement ,AuthorizationDecisionStatement andAttributeStatement . Each Assertion can havemultiple type of statements in it. exception: SAMLException - if there is an error in processing input. |
fromElement | public static Assertion fromElement(org.w3c.dom.Element element) throws SAMLException(Code) | | This constructor is used to build Assertion object from a
block of existing XML that has already been built into a DOM.
Parameters: assertionElement - A org.w3c.dom.Element representingDOM tree for Assertion object exception: SAMLException - if it could not process the Element properly,implying that there is an error in the sender or in theelement definition. |
isSigned | public boolean isSigned()(Code) | | |
sign | public Element sign(PublicKey pubKey, PrivateKey privKey) throws SAMLException(Code) | | sign the saml assertion (Enveloped Signature)
Parameters: pubKey - PublicKey to be used for Signature verification Parameters: privKey - PrivateKey to be used for Signature calculation |
sign | public Element sign(DigestMethod digestMethod, String signatureMethod, PublicKey pubKey, PrivateKey privKey) throws SAMLException(Code) | | sign the saml assertion (Enveloped Signature)
Parameters: digestMethod - DigestMethod to be used Parameters: signatureMethod - SignatureMethod to be used. Parameters: pubKey - PublicKey to be used for Signature verification Parameters: privKey - PrivateKey to be used for Signature calculation |
|
|