public class AuthorizationData extends Object
AuthorizationData represents Authorization Type @see UserAdminMBean.AUTORIZATION_TYPE.It is a codec
for the CompositeData representing an Authorization .
| Constructor and Description |
|---|
AuthorizationData(org.osgi.service.useradmin.Authorization auth)
Constructs new AuthorizationData from Authorization.
|
AuthorizationData(String name,
String[] roles)
Constructs new AuthorizationData.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public AuthorizationData(org.osgi.service.useradmin.Authorization auth)
auth - Authorization instance.public CompositeData toCompositeData()
UserAdminMBean.AUTORIZATION_TYPE.public static AuthorizationData from(CompositeData data)
data - CompositeData instance.public String getName()
public String[] getRoles()
Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.