@Immutable public final class ACRRequest extends Object
Constructor and Description |
---|
ACRRequest(List<ACR> essentialACRs,
List<ACR> voluntaryACRs)
Creates a new Authentication Context Class Reference (ACR) request.
|
Modifier and Type | Method and Description |
---|---|
List<ACR> |
getEssentialACRs()
Gets the requested essential ACR values.
|
List<ACR> |
getVoluntaryACRs()
Gets the requested voluntary ACR values.
|
boolean |
isEmpty()
Checks if this authentication Context Class Reference (ACR) request
has not essential or voluntary values specified.
|
static ACRRequest |
resolve(AuthenticationRequest authRequest)
Resolves the requested essential and voluntary ACR values from the
specified OpenID Connect authentication request.
|
public ACRRequest(List<ACR> essentialACRs, List<ACR> voluntaryACRs)
essentialACRs
- The requested essential ACR values, by order of
preference, null
if not specified.voluntaryACRs
- The requested voluntary ACR values, by order of
preference, null
if not specified.public List<ACR> getEssentialACRs()
null
if not specified.public List<ACR> getVoluntaryACRs()
null
if not specified.public boolean isEmpty()
true
if this ACR request doesn't specify any
essential or voluntary values, else false
.public static ACRRequest resolve(AuthenticationRequest authRequest)
authRequest
- The OpenID Connect authentication request. Should
be resolved. Must not be null
.Copyright © 2016 Connect2id Ltd.. All rights reserved.