Class RegistrationClaimsSet.Builder
java.lang.Object
net.shibboleth.idp.plugin.oidc.op.token.support.RegistrationClaimsSet.Builder
- Enclosing class:
- RegistrationClaimsSet
The builder for
RegistrationClaimsSet.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe authentication context class reference value of the performed authentication.private InstantThe authentication time of the performed authentication.private StringClient identifier.private InstantExpiration time of the token.private InstantIssuance time of the token.private StringIssuer of the token.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 use of the token. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the claims set object.Set the authentication context class reference value of the performed authentication.withAuthTime(Instant time) Set the authentication time of the performed authentication.withClientId(String id) Set the client identifier.withExpiration(Instant exp) Set the expiration time of the token.withIssuedAt(Instant iat) Set the issuance time of the token.withIssuer(String iss) Sets the issuer of the token.withMetadata(Map<String, MetadataPolicy> data) Set the allowed metadata values to be issued with the token.withPrincipal(String prncpl) Set the principal who issued the token.Set the relying party identifier.withReplacement(Boolean flag) Set the flag to signal replacement use of the token.Sets the type of the token.
-
Field Details
-
jti
Identifier for the token. -
keyType
Type of the token. -
issuer
Issuer of the token. -
expiration
Expiration time of the token. -
issuedAt
Issuance time of the token. -
principal
The principal who issued the token. -
authContext
The authentication context class reference value of the performed authentication. -
authTime
The 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 use of the token.
-
-
Constructor Details
-
Builder
Constructor.- Parameters:
id- The identifier for the token.
-
-
Method Details
-
withType
Sets the type of the token.- Parameters:
type- What to set.- Returns:
- The builder instance.
-
withIssuer
Sets the issuer of the token.- Parameters:
iss- What to set.- Returns:
- The builder instance.
-
withExpiration
Set the expiration time of the token.- Parameters:
exp- What to set.- Returns:
- The builder instance.
-
withIssuedAt
Set the issuance time of the token.- Parameters:
iat- What to set.- Returns:
- The builder instance.
-
withPrincipal
Set the principal who issued the token.- Parameters:
prncpl- What to set.- Returns:
- The builder instance.
-
withAcr
Set the authentication context class reference value of the performed authentication.- Parameters:
acr- What to set.- Returns:
- The builder instance.
-
withAuthTime
Set the authentication time of the performed authentication.- Parameters:
time- What to set.- Returns:
- The builder instance.
-
withMetadata
public RegistrationClaimsSet.Builder withMetadata(@Nullable @NonnullElements Map<String, MetadataPolicy> data) Set the allowed metadata values to be issued with the token.- Parameters:
data- What to set.- Returns:
- The builder instance.
-
withRelyingPartyId
Set the relying party identifier.- Parameters:
id- What to set.- Returns:
- The builder instance.
-
withClientId
Set the client identifier.- Parameters:
id- What to set- Returns:
- The builder instance.
-
withReplacement
Set the flag to signal replacement use of the token.- Parameters:
flag- What to set- Returns:
- The builder instance
-
build
Build the claims set object.- Returns:
- The claims set object.
-