final class UnresolvedPrincipal extends Object implements Principal
PermissionGrant
,
ConcurrentPolicyFile
Modifier and Type | Field and Description |
---|---|
private String |
klass |
private String |
name |
(package private) static String |
WILDCARD
Wildcard value denotes any class and/or any name.
|
Constructor and Description |
---|
UnresolvedPrincipal(String klass,
String name)
Constructs a a new definition of a Principal with specified
parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object that)
Returns
true if compared object is a Principal
matching this definition, or if it is an UnresolvedPrincipal,
which defines the same Principal; false otherwise. |
String |
getClassName()
Returns fully qualified class name of a modeled Principal,
or wildcard if any class is acceptable.
|
String |
getName()
Returns name of a modeled Principal, or wildcard
if any name is acceptable.
|
int |
hashCode()
Returns the hash code value for this object.
|
boolean |
implies(Principal another)
Returns
true if compared object is a Principal
exactly matching this definition. |
String |
toString()
Returns a string describing this model of Principal.
|
static final String WILDCARD
private final String klass
private final String name
UnresolvedPrincipal(String klass, String name)
klass
- fully qualified class name, may be wildcardname
- name of principal, may be wildcardIllegalArgumentException
- if klass
value
is null
or is empty stringpublic String getName()
public String getClassName()
public boolean equals(Object that)
true
if compared object is a Principal
matching this definition, or if it is an UnresolvedPrincipal,
which defines the same Principal; false
otherwise.public boolean implies(Principal another)
true
if compared object is a Principal
exactly matching this definition. Namely, if the fully qualified name
of class of passed Principal is equal to the class name value
of this definition and the name of passed Principal is equal to
the name value of this definition, or if this definition allows
any class or name, respectively.
Otherwise returns false
.public int hashCode()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.