public class SecurityRoleMetaData extends NamedMetaDataWithDescriptions
| Constructor and Description |
|---|
SecurityRoleMetaData()
Create a new SecurityRoleMetaData.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getPrincipals()
Get the principals.
|
String |
getRoleName()
Get the roleName.
|
boolean |
hasPrincipal(String userName)
Whether this roles has the principal
|
void |
setPrincipals(Set<String> principals)
Set the principals.
|
void |
setRoleName(String roleName)
Set the roleName.
|
getDescriptions, setDescriptionsequals, getKey, getName, hashCode, setName, toStringclone, getId, setIdfinalize, getClass, notify, notifyAll, wait, wait, waitgetKeypublic SecurityRoleMetaData()
public String getRoleName()
public void setRoleName(String roleName)
roleName - the roleName.IllegalArgumentException - for a null roleNamepublic void setPrincipals(Set<String> principals)
principals - the principals.IllegalArgumentException - for a null principalspublic boolean hasPrincipal(String userName)
userName - the principalIllegalArgumentException - for a null principalCopyright © 2017 JBoss by Red Hat. All rights reserved.