public class TokenRestrictionFactory extends Object
TokenRestriction
instances.Constructor and Description |
---|
TokenRestrictionFactory() |
Modifier and Type | Method and Description |
---|---|
DNOrIPAddressListTokenRestriction |
createDNOrIPAddressListTokenRestriction(String dn,
Set<String> hostNames)
Create a new instance of
DNOrIPAddressListTokenRestriction ,
which handles the restriction of the DN or IPAddress . |
NoOpTokenRestriction |
createNoOpTokenRestriction()
Create a new instance of
NoOpTokenRestriction ,
which always satisfies the restriction. |
static String |
marshal(TokenRestriction tokenRestriction)
Serializes the restriction object.
|
static TokenRestriction |
unmarshal(String data)
Deserialize the string into Token Restriction object.
|
public static String marshal(TokenRestriction tokenRestriction) throws Exception
tokenRestriction
- Token Restriction object to be serialized.Exception
- if the there was an error.public static TokenRestriction unmarshal(String data) throws Exception
data
- Token Restriction object in the string format.Exception
- if the there was an error.public NoOpTokenRestriction createNoOpTokenRestriction()
NoOpTokenRestriction
,
which always satisfies the restriction.NoOpTokenRestriction
.public DNOrIPAddressListTokenRestriction createDNOrIPAddressListTokenRestriction(String dn, Set<String> hostNames) throws UnknownHostException, SSOException, SMSException
DNOrIPAddressListTokenRestriction
,
which handles the restriction of the DN
or IPAddress
.dn
- the DN
of the user.hostNames
- the list of host names.DNOrIPAddressListTokenRestriction
.UnknownHostException
- if the host cannot be resolved.SSOException
- if the single sign on token is invalid or expired.SMSException
- if an error occurred while trying to perform the operation.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.