public class SAMLAssertionUtil extends Object
| Constructor and Description |
|---|
SAMLAssertionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
createSAMLAssertion(String issuerName,
String forService)
Create a SAML assertion that is good for 10s.
|
static String |
createSAMLAssertion(String issuerName,
String forService,
int timeValidInMillis)
Creates a SAML Assertion that can be used as a bearer token when invoking REST
services.
|
public static String createSAMLAssertion(String issuerName, String forService)
issuerName - forService - public static String createSAMLAssertion(String issuerName, String forService, int timeValidInMillis)
SAMLBearerTokenLoginModule.
In Tomcat7 this means protecting the REST services with SAMLBearerTokenAuthenticator.issuerName - the issuer name (typically the context of the calling web app)forService - the web context of the REST service being invokedtimeValidInMillis - how long the saml assertion should be valid for (in milliseconds)Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.