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, setDescriptions
equals, getKey, getName, hashCode, setName, toString
clone, getId, setId
finalize, getClass, notify, notifyAll, wait, wait, wait
getKey
public 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 © 2014 JBoss by Red Hat. All rights reserved.