|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.acl.Util
public class Util
Utility class used by the ACL
implementation.
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static String |
getIdentityAsString(org.jboss.security.identity.Identity identity)
Returns a String representation of the specified identity. |
static org.jboss.security.identity.Identity |
getIdentityFromString(String identityString)
Builds and returns an identity from the specified String representation. |
static String |
getResourceAsString(org.jboss.security.authorization.Resource resource)
Returns a String representation of the specified resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static String getResourceAsString(org.jboss.security.authorization.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(org.jboss.security.identity.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 org.jboss.security.identity.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |