public class SAML2TokenUtils extends Object
Constructor and Description |
---|
SAML2TokenUtils()
Creates a new instance of SAML2TokenUtils
|
Modifier and Type | Method and Description |
---|---|
static X509Certificate |
getCertificate(SecurityToken securityToken)
Returns an
X509Certificate from the security token if it
is of type SAML2 token holder of key. |
static Element |
getKeyInfo(Assertion assertion)
Returns the
KeyInfo element from the assertion. |
static Key |
getSecretKey(SecurityToken securityToken,
String certAlias) |
static boolean |
validateAssertion(Assertion assertion,
Subject subject,
Map secureAttrs)
Validates Assertion and sets the principal into the container Subject.
|
public SAML2TokenUtils()
public static X509Certificate getCertificate(SecurityToken securityToken) throws SecurityException
X509Certificate
from the security token if it
is of type SAML2 token holder of key.SecurityException
public static Key getSecretKey(SecurityToken securityToken, String certAlias) throws SecurityException
SecurityException
public static Element getKeyInfo(Assertion assertion)
KeyInfo
element from the assertion.public static boolean validateAssertion(Assertion assertion, Subject subject, Map secureAttrs) throws SecurityException
SecurityException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.