public class StatementUtil extends Object
Modifier and Type | Field and Description |
---|---|
static QName |
X500_QNAME |
Constructor and Description |
---|
StatementUtil() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final QName X500_QNAME
public static AuthnStatementType createAuthnStatement(XMLGregorianCalendar instant, String authnContextClassRefValue)
instant
- an instanceof XMLGregorianCalendar
authnContextClassRefValue
- indicate the type of authentication performedAuthnStatementType
public static AttributeStatementType createAttributeStatement(Map<String,Object> attributes)
attributes
- a map with keys from AttributeConstants
public static AttributeStatementType createAttributeStatement(List<String> roles)
roles
- public static AttributeStatementType createAttributeStatement(String key, String value)
AttributeStatementType
key
- attribute typevalue
- attribute valueCopyright © 2012 JBoss by Red Hat. All Rights Reserved.