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 Map<String,Object> |
asMap(Set<AttributeStatementType> attributeStatementTypes) |
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 XMLGregorianCalendarauthnContextClassRefValue - indicate the type of authentication performedAuthnStatementTypepublic static AttributeStatementType createAttributeStatement(Map<String,Object> attributes)
attributes - a map with keys from AttributeConstantspublic 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)
AttributeStatementTypekey - attribute typevalue - attribute valuepublic static Map<String,Object> asMap(Set<AttributeStatementType> attributeStatementTypes)
Copyright © 2021 JBoss by Red Hat. All rights reserved.