public class AssertionToken extends Object implements SecurityToken
SecurityToken
for the
SAML Assertions.LIBERTY_ASSERTION_TOKEN, WSS_FAM_SSO_TOKEN, WSS_KERBEROS_TOKEN, WSS_SAML_TOKEN, WSS_SAML2_TOKEN, WSS_USERNAME_TOKEN, WSS_X509_TOKEN
Constructor and Description |
---|
AssertionToken(AssertionTokenSpec spec,
SSOToken ssoToken)
Constructor that initializes the AssertionToken.
|
AssertionToken(Element element) |
Modifier and Type | Method and Description |
---|---|
Assertion |
getAssertion()
Returns the generated
SAML Assertion . |
String |
getTokenType()
Returns the security token type.
|
X509Certificate |
getX509Certificate()
Returns X509 certificate of the authenticated subject.
|
boolean |
isSenderVouches() |
void |
sign(String alias)
Signs the Assertion Token.
|
Element |
toDocumentElement()
Convert the security token into DOM Object.
|
public AssertionToken(AssertionTokenSpec spec, SSOToken ssoToken) throws SecurityException
SecurityException
public AssertionToken(Element element) throws SAMLException
SAMLException
public String getTokenType()
getTokenType
in interface SecurityToken
public Element toDocumentElement() throws SecurityException
toDocumentElement
in interface SecurityToken
SecurityException
- if any failure is occured.public boolean isSenderVouches()
public X509Certificate getX509Certificate() throws SecurityException
SecurityException
public void sign(String alias) throws SecurityException
SecurityException
- if unable to sign the assertion.public Assertion getAssertion()
SAML Assertion
.Assertion
generated saml assertion.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.