org.overlord.commons.auth.jboss7
Class SAMLBearerTokenUtil

java.lang.Object
  extended by org.overlord.commons.auth.jboss7.SAMLBearerTokenUtil

public class SAMLBearerTokenUtil
extends Object

Class used to create SAML bearer tokens used when calling REST service endpoints protected by SAML.

Author:
eric.wittmann@redhat.com

Constructor Summary
SAMLBearerTokenUtil()
           
 
Method Summary
static String createSAMLAssertion(String issuerName, String forService)
          Creates a SAML Assertion that can be used as a bearer token when invoking REST services.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAMLBearerTokenUtil

public SAMLBearerTokenUtil()
Method Detail

createSAMLAssertion

public static String createSAMLAssertion(String issuerName,
                                         String forService)
Creates a SAML Assertion that can be used as a bearer token when invoking REST services. The REST service must be configured to accept SAML Assertion bearer tokens (in JBoss this means protecting the REST services with SAMLBearerTokenLoginModule.

Parameters:
issuerName - the issuer name (typically the context of the calling web app)
forService - the web context of the REST service being invoked


Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.