public class PrincipalTokenRestriction extends Object implements TokenRestriction
Constructor and Description |
---|
PrincipalTokenRestriction(String dn)
Creates
PrincipalTokenRestriction object for the specified
dn |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Compares this DN to the specified object.
|
int |
hashCode()
Returns a hash code for this object.
|
boolean |
isSatisfied(Object context)
Returns a true if the restriction matches the context for which it was
set, otherwise it returns false.
|
public PrincipalTokenRestriction(String dn)
PrincipalTokenRestriction
object for the specified
dn
dn
- the name of the DN.public int hashCode()
hashCode
in interface TokenRestriction
hashCode
in class Object
public boolean equals(Object other)
other
is the same as this
restriction.equals
in interface TokenRestriction
equals
in class Object
other
- -
the object to compare this restriction against.public boolean isSatisfied(Object context) throws Exception
isSatisfied
in interface TokenRestriction
context
- The context from which the restriction needs to be checked The
context can be: - the SSOToken of the Application against
which the restriction is being comparedException
- if the there was an error.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.