public class DNOrIPAddressListTokenRestriction extends Object implements TokenRestriction
DNOrIPAddressListTokenRestriction
implements
TokenRestriction
interface and handles the restriction of
the DN
or IPAddress
Constructor and Description |
---|
DNOrIPAddressListTokenRestriction()
Default constructor for InternalSession deserialization.
|
DNOrIPAddressListTokenRestriction(String dn,
Set<String> hostNames,
ServiceSchemaManager serviceSchemaManager)
Constructs
DNOrIPAddressListTokenRestriction object based on
the DN and list of host names to be restricted. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Returns true of
other meets these criteria. |
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.
|
String |
toString()
This method returns the restriction as a string.
|
public DNOrIPAddressListTokenRestriction()
public DNOrIPAddressListTokenRestriction(String dn, Set<String> hostNames, ServiceSchemaManager serviceSchemaManager) throws UnknownHostException
DNOrIPAddressListTokenRestriction
object based on
the DN
and list of host names to be restricted.dn
- the DN
of the userhostNames
- list of host names.serviceSchemaManager
- the service's schema manager.UnknownHostException
- if the host cannot be resolved.public String toString()
public int hashCode()
hashCode
in interface TokenRestriction
hashCode
in class Object
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 any from the following - the Single
Sign on token of the Application against which the restriction
is being compared - the IP Address/Host Name of the Application
against which the restriction is being comparedException
- is thrown if the there was an error.public boolean equals(Object other)
other
meets these criteria.
DNOrIPAddressListTokenRestriction
equals
in interface TokenRestriction
equals
in class Object
other
- the object to be used for comparison.other
meets the above criteria.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.