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 AttributeStatementType |
createAttributeStatementForRoles(List<String> roles,
boolean multivalued)
Given a set of roles, create an attribute statement
|
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 createAttributeStatementForRoles(List<String> roles, boolean multivalued)
roles
- multivalued
- if you want the attribute to be multi valuedpublic static AttributeStatementType createAttributeStatement(String key, String value)
AttributeStatementType
key
- attribute typevalue
- attribute valueCopyright © 2017 JBoss by Red Hat. All rights reserved.