public interface TokenRestriction extends Serializable
InternalSession
objcets. The JsonTypeInfo
annotation makes sure of
saving type information as part of the serialized JSON, and provides a default implementation in case the type
information is missing (e.g. with old tokens that were generated without type info).Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Implements standard equals() semantics as mandated by 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.
|
boolean equals(Object other)
int hashCode()
boolean isSatisfied(Object context) throws Exception
context
- The context from which the restriction needs to be checked.true
if the restriction is satisfied, false
otherwise.Exception
- If the there was an error.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.