PicketLink Federation Core 2.1.6.Final-redhat-2

org.picketlink.identity.federation.core.saml.v2.util
Class StatementUtil

java.lang.Object
  extended by org.picketlink.identity.federation.core.saml.v2.util.StatementUtil

public class StatementUtil
extends Object

Deals with SAML2 Statements

Since:
Aug 31, 2009
Author:
Anil.Saldhana@redhat.com

Field Summary
static QName X500_QNAME
           
 
Constructor Summary
StatementUtil()
           
 
Method Summary
static AttributeStatementType createAttributeStatement(List<String> roles)
          Given a set of roles, create an attribute statement
static AttributeStatementType createAttributeStatement(Map<String,Object> attributes)
          Create an attribute statement with all the attributes
static AttributeStatementType createAttributeStatement(String key, String value)
          Given an attribute type and a value, create AttributeStatementType
static AuthnStatementType createAuthnStatement(XMLGregorianCalendar instant, String authnContextClassRefValue)
          Create an AuthnStatementType given the issue instant and the type of authentication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X500_QNAME

public static final QName X500_QNAME
Constructor Detail

StatementUtil

public StatementUtil()
Method Detail

createAuthnStatement

public static AuthnStatementType createAuthnStatement(XMLGregorianCalendar instant,
                                                      String authnContextClassRefValue)
Create an AuthnStatementType given the issue instant and the type of authentication

Parameters:
instant - an instanceof XMLGregorianCalendar
authnContextClassRefValue - indicate the type of authentication performed
Returns:
AuthnStatementType

createAttributeStatement

public static AttributeStatementType createAttributeStatement(Map<String,Object> attributes)
Create an attribute statement with all the attributes

Parameters:
attributes - a map with keys from AttributeConstants
Returns:

createAttributeStatement

public static AttributeStatementType createAttributeStatement(List<String> roles)
Given a set of roles, create an attribute statement

Parameters:
roles -
Returns:

createAttributeStatement

public static AttributeStatementType createAttributeStatement(String key,
                                                              String value)
Given an attribute type and a value, create AttributeStatementType

Parameters:
key - attribute type
value - attribute value
Returns:

PicketLink Federation Core 2.1.6.Final-redhat-2

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.