|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.aries.jmx.codec.AuthorizationData
public class AuthorizationData
AuthorizationData represents Authorization Type @see UserAdminMBean.AUTORIZATION_TYPE
.It is a codec
for the CompositeData
representing an Authorization .
Constructor Summary | |
---|---|
AuthorizationData(org.osgi.service.useradmin.Authorization auth)
Constructs new AuthorizationData from Authorization. |
|
AuthorizationData(String name,
String[] roles)
Constructs new AuthorizationData. |
Method Summary | |
---|---|
static AuthorizationData |
from(CompositeData data)
Static factory method to create AuthorizationData from CompositeData object. |
String |
getName()
|
String[] |
getRoles()
|
CompositeData |
toCompositeData()
Translates AuthorizationData to CompositeData represented by compositeType UserAdminMBean.AUTORIZATION_TYPE . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AuthorizationData(org.osgi.service.useradmin.Authorization auth)
auth
- Authorization
instance.public AuthorizationData(String name, String[] roles)
name
- of authorization context.roles
- implied by authorization context.Method Detail |
---|
public CompositeData toCompositeData()
UserAdminMBean.AUTORIZATION_TYPE
.
public static AuthorizationData from(CompositeData data)
data
- CompositeData
instance.
public String getName()
public String[] getRoles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |