| com.sun.xml.wss.saml.Assertion
All known Subclasses: com.sun.xml.wss.saml.assertion.saml11.jaxb10.Assertion, com.sun.xml.wss.saml.assertion.saml20.jaxb20.Assertion, com.sun.xml.wss.saml.assertion.saml11.jaxb20.Assertion,
Assertion | public interface Assertion extends Token(Code) | | This interface 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 Authentication, Authorization
Decision and Attribute assertion.
<Assertion AssertionID="1124370015917" IssueInstant="2005-08-18T18:30:15.917+05:30"
Issuer="CN=Assertion Issuer,OU=AI,O=Assertion Issuer,L=Waltham,ST=MA,C=US"
MajorVersion="1" MinorVersion="1"
xmlns="urn:oasis:names:tc:SAML:1.0:assertion">
<Conditions NotBefore="2005-08-16T13:21:50.503+05:30"
NotOnOrAfter="2005-08-16T15:21:50.504+05:30"/>
<Subject xmlns="urn:oasis:names:tc:SAML:1.0:assertion">
<NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName">
CN=SAML User,OU=SU,O=SAML User,L=Los Angeles,ST=CA,C=US
</NameIdentifier>
<SubjectConfirmation>
<ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:sender-vouches</ConfirmationMethod>
</SubjectConfirmation>
</Subject>
<Attribute AttributeName="attribute1" AttributeNamespace="urn:com:sun:xml:wss:attribute">
<AttributeValue>ATTRIBUTE1</AttributeValue>
</Attribute>
<Assertion>
|
setMajorVersion | public void setMajorVersion(java.math.BigInteger value)(Code) | | Set the saml major version
Parameters: value - A java.math.BigInteger representingsaml major version |
setMinorVersion | public void setMinorVersion(java.math.BigInteger value)(Code) | | Set the saml minor version
Parameters: value - A java.math.BigInteger representingsaml minor version |
sign | public Element sign(PublicKey pubKey, PrivateKey privKey) throws SAMLException(Code) | | Sign the SAML Assertion - Enveloped Signature
Parameters: pubKey - A java.security.PublicKey representing the public key used for Signature verification Parameters: privKey - A java.security.PrivateKey representing the private key used for Signature calculation.By Default DigestMethod.SHA1 and SignatureMethod.RSA_SHA1 will be used. An org.w3c.dom.Element representation of Signed SAML Assertion |
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 An org.w3c.dom.Element representation of Signed SAML Assertion |
toElement | public Element toElement(Node doc) throws XWSSecurityException(Code) | | Convert SAML Assertion to org.w3c.dom.Element
Parameters: doc - the context org.w3c.dom.Node for the creation of theresulting Element . org.w3c.dom.Element element representation of SAML Assertion |
|
|