Class RegistrationClaimsSet
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.token.support.RegistrationClaimsSet
Class wrapping claims for the initial registration access token.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringAuthentication context class reference value of the performed authentication.private InstantAuthentication time of the performed authentication.private StringClient identifier.private InstantExpiration time of the token.private InstantIssuance time of the token.private StringOP issuer.private StringIdentifier for the token.private StringType of the token.private Map<String,MetadataPolicy> Allowed metadata values to be issued with the token.private StringThe principal who issued the token.private StringRelying party identifier.private BooleanFlag to signal replacement is allowed.private static final StringValue of initial registration access token claims set type. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the authentication context class reference value of the performed authentication.Get the authentication time of the performed authentication.Get the client identifier.Get the expiration time of the token.longGet the expiration time of the token using epoch seconds.Get the issuance time of the token.longGet the issuance time of the token using epoch seconds.Get the issuer of the token.getJti()Get the identifier for the token.Get the type of the token.Get the allowed metadata values to be issued with the token.Get the principal who issued the token.Get the relying party identifier.booleanGet the flag to signal replacement is allowed.voidsetAuthContext(String acr) Set the authentication context class reference value of the performed authentication.voidsetAuthTime(Instant time) Set the authentication time of the performed authentication.voidsetClientId(String id) Set the client identifier.voidsetExpiration(Instant exp) Set the expiration time of the token.voidsetExpirationEpoch(long exp) Set the expiration time of the token using epoch seconds.voidsetIssuedAt(Instant iat) Set the issuance time of the token.voidsetIssuedAtEpoch(long iat) Set the issuance time of the token using epoch seconds.voidSet the issuer of the token.voidSet the identifier for the token.voidsetKeyType(String type) Set the type of the token.voidsetMetadata(Map<String, MetadataPolicy> data) Set the allowed metadata values to be issued with the token.voidsetPrincipal(String prin) Set the principal who issued the token.voidSet the relying party identifier.voidsetReplacement(Boolean flag) Set the flag to signal replacement is allowed.
-
Field Details
-
VALUE_TYPE_RT
Value of initial registration access token claims set type.- See Also:
-
jti
Identifier for the token. -
keyType
Type of the token. -
issuer
OP issuer. -
expiration
Expiration time of the token. -
issuedAt
Issuance time of the token. -
principal
The principal who issued the token. -
authContext
Authentication context class reference value of the performed authentication. -
authTime
Authentication time of the performed authentication. -
metadata
Allowed metadata values to be issued with the token. -
relyingPartyId
Relying party identifier. -
clientId
Client identifier. -
replacement
Flag to signal replacement is allowed.
-
-
Constructor Details
-
RegistrationClaimsSet
private RegistrationClaimsSet()Constructor.
-
-
Method Details
-
getJti
Get the identifier for the token.- Returns:
- The identifier for the token.
-
setJti
Set the identifier for the token.- Parameters:
id- What to set.
-
getKeyType
Get the type of the token.- Returns:
- The type of the token.
-
setKeyType
Set the type of the token.- Parameters:
type- What to set.
-
getIssuer
Get the issuer of the token.- Returns:
- The issuer of the token.
-
setIssuer
Set the issuer of the token.- Parameters:
iss- What to set.
-
getExpiration
Get the expiration time of the token.- Returns:
- The expiration time of the token.
-
setExpiration
Set the expiration time of the token.- Parameters:
exp- What to set.
-
getExpirationEpoch
Get the expiration time of the token using epoch seconds.- Returns:
- The expiration time of the token using epoch seconds.
-
setExpirationEpoch
Set the expiration time of the token using epoch seconds.- Parameters:
exp- What to set.
-
getIssuedAt
Get the issuance time of the token.- Returns:
- The issuance time of the token.
-
setIssuedAt
Set the issuance time of the token.- Parameters:
iat- What to set.
-
setIssuedAtEpoch
Set the issuance time of the token using epoch seconds.- Parameters:
iat- What to set.
-
getIssuedAtEpoch
Get the issuance time of the token using epoch seconds.- Returns:
- The issuance time of the token using epoch seconds.
-
getPrincipal
Get the principal who issued the token.- Returns:
- The principal who issued the token.
-
setPrincipal
Set the principal who issued the token.- Parameters:
prin- What to set.
-
getAuthContext
Get the authentication context class reference value of the performed authentication.- Returns:
- The authentication context class reference value of the performed authentication.
-
setAuthContext
Set the authentication context class reference value of the performed authentication.- Parameters:
acr- What to set.
-
getAuthTime
Get the authentication time of the performed authentication.- Returns:
- The authentication time of the performed authentication.
-
setAuthTime
Set the authentication time of the performed authentication.- Parameters:
time- What to set.
-
getMetadata
Get the allowed metadata values to be issued with the token.- Returns:
- The allowed metadata values to be issued with the token.
-
setMetadata
Set the allowed metadata values to be issued with the token.- Parameters:
data- What to set.
-
getRelyingPartyId
Get the relying party identifier.- Returns:
- The relying party identifier.
-
setRelyingPartyId
Set the relying party identifier.- Parameters:
id- id to set
-
getClientId
Get the client identifier.This is may or may not be the same as the relying party identifier, and if set is a signal to the registration flow to use this value rather than a generated one.
- Returns:
- client identifier.
-
setClientId
Set the client identifier.- Parameters:
id- id to set
-
isReplacement
public boolean isReplacement()Get the flag to signal replacement is allowed.- Returns:
- true iff replacement is allowed
-
setReplacement
Set the flag to signal replacement is allowed.- Parameters:
flag- flag to set
-