public class AuthorizationData
extends java.lang.Object
AuthorizationData represents Authorization Type @see UserAdminMBean.AUTORIZATION_TYPE
.It is a codec
for the CompositeData
representing an Authorization .
Constructor and Description |
---|
AuthorizationData(Authorization auth)
Constructs new AuthorizationData from Authorization.
|
AuthorizationData(java.lang.String name,
java.lang.String[] roles)
Constructs new AuthorizationData.
|
Modifier and Type | Method and Description |
---|---|
static AuthorizationData |
from(javax.management.openmbean.CompositeData data)
Static factory method to create AuthorizationData from CompositeData object.
|
java.lang.String |
getName() |
java.lang.String[] |
getRoles() |
javax.management.openmbean.CompositeData |
toCompositeData()
Translates AuthorizationData to CompositeData represented by
compositeType
UserAdminMBean.AUTORIZATION_TYPE . |
public AuthorizationData(Authorization auth)
auth
- Authorization
instance.public AuthorizationData(java.lang.String name, java.lang.String[] roles)
name
- of authorization context.roles
- implied by authorization context.public javax.management.openmbean.CompositeData toCompositeData()
UserAdminMBean.AUTORIZATION_TYPE
.public static AuthorizationData from(javax.management.openmbean.CompositeData data)
data
- CompositeData
instance.public java.lang.String getName()
public java.lang.String[] getRoles()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"