public class Util extends Object
Utility class used by the ACL
implementation.
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static String |
getIdentityAsString(Identity identity)
Returns a
String representation of the specified identity. |
static Identity |
getIdentityFromString(String identityString)
Builds and returns an identity from the specified
String representation. |
static String |
getResourceAsString(Resource resource)
Returns a
String representation of the specified resource. |
public static String getResourceAsString(Resource resource)
Returns a String
representation of the specified resource. The format of this representation
is as follows: resource_fqn:resource_id
, where resource_fqn
is the fully-qualified
name of the resource class, and resource_id
is the unique identifier of the resource.
resource
- the Resource
to be converted.String
representation of the resource.public static String getIdentityAsString(Identity identity)
Returns a String
representation of the specified identity. The format of this representation
is as follows: identity_fqn:identity_name
, where identity_fqn
is the fully-qualified
name of the identity class, and identity_name
is a String
representing the name of
the identity.
identity
- the Identity
to be converted.String
representation of the identity.public static Identity getIdentityFromString(String identityString)
Builds and returns an identity from the specified String
representation. It parses the
identityString
argument, and passes the parsed identity class, and identity name to
the IdentityFactory
to retrieve an instance of Identity
.
identityString
- a String
representation of the identity to be created.Identity
instance.Copyright © 2018 JBoss by Red Hat. All rights reserved.