Class RegistrationClaimsSet.Builder
- java.lang.Object
-
- net.shibboleth.idp.plugin.oidc.op.token.support.RegistrationClaimsSet.Builder
-
- Enclosing class:
- RegistrationClaimsSet
public static class RegistrationClaimsSet.Builder extends Object
The builder forRegistrationClaimsSet.
-
-
Field Summary
Fields Modifier and Type Field Description private StringauthContextThe authentication context class reference value of the performed authentication.private InstantauthTimeThe authentication time of the performed authentication.private StringclientIdClient identifier.private InstantexpirationExpiration time of the token.private InstantissuedAtIssuance time of the token.private StringissuerIssuer of the token.private StringjtiIdentifier for the token.private StringkeyTypeType of the token.private Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy>metadataAllowed metadata values to be issued with the token.private StringprincipalThe principal who issued the token.private StringrelyingPartyIdRelying party identifier.private BooleanreplacementFlag to signal replacement use of the token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistrationClaimsSetbuild()Build the claims set object.RegistrationClaimsSet.BuilderwithAcr(String acr)Set the authentication context class reference value of the performed authentication.RegistrationClaimsSet.BuilderwithAuthTime(Instant time)Set the authentication time of the performed authentication.RegistrationClaimsSet.BuilderwithClientId(String id)Set the client identifier.RegistrationClaimsSet.BuilderwithExpiration(Instant exp)Set the expiration time of the token.RegistrationClaimsSet.BuilderwithIssuedAt(Instant iat)Set the issuance time of the token.RegistrationClaimsSet.BuilderwithIssuer(String iss)Sets the issuer of the token.RegistrationClaimsSet.BuilderwithMetadata(Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy> data)Set the allowed metadata values to be issued with the token.RegistrationClaimsSet.BuilderwithPrincipal(String prncpl)Set the principal who issued the token.RegistrationClaimsSet.BuilderwithRelyingPartyId(String id)Set the relying party identifier.RegistrationClaimsSet.BuilderwithReplacement(Boolean flag)Set the flag to signal replacement use of the token.RegistrationClaimsSet.BuilderwithType(String type)Sets the type of the token.
-
-
-
Field Detail
-
expiration
@Nullable private Instant expiration
Expiration time of the token.
-
issuedAt
@Nullable private Instant issuedAt
Issuance time of the token.
-
authContext
@Nullable @NotEmpty private String authContext
The authentication context class reference value of the performed authentication.
-
authTime
@Nullable private Instant authTime
The authentication time of the performed authentication.
-
metadata
@Nullable @NonnullElements private Map<String,net.shibboleth.oidc.metadata.policy.MetadataPolicy> metadata
Allowed metadata values to be issued with the token.
-
replacement
@Nullable private Boolean replacement
Flag to signal replacement use of the token.
-
-
Method Detail
-
withType
public RegistrationClaimsSet.Builder withType(@Nullable @NotEmpty String type)
Sets the type of the token.- Parameters:
type- What to set.- Returns:
- The builder instance.
-
withIssuer
public RegistrationClaimsSet.Builder withIssuer(@Nullable @NotEmpty String iss)
Sets the issuer of the token.- Parameters:
iss- What to set.- Returns:
- The builder instance.
-
withExpiration
public RegistrationClaimsSet.Builder withExpiration(@Nullable Instant exp)
Set the expiration time of the token.- Parameters:
exp- What to set.- Returns:
- The builder instance.
-
withIssuedAt
public RegistrationClaimsSet.Builder withIssuedAt(@Nullable Instant iat)
Set the issuance time of the token.- Parameters:
iat- What to set.- Returns:
- The builder instance.
-
withPrincipal
public RegistrationClaimsSet.Builder withPrincipal(@Nullable @NotEmpty String prncpl)
Set the principal who issued the token.- Parameters:
prncpl- What to set.- Returns:
- The builder instance.
-
withAcr
public RegistrationClaimsSet.Builder withAcr(@Nullable @NotEmpty String acr)
Set the authentication context class reference value of the performed authentication.- Parameters:
acr- What to set.- Returns:
- The builder instance.
-
withAuthTime
public RegistrationClaimsSet.Builder withAuthTime(@Nullable Instant time)
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,net.shibboleth.oidc.metadata.policy.MetadataPolicy> data)
Set the allowed metadata values to be issued with the token.- Parameters:
data- What to set.- Returns:
- The builder instance.
-
withRelyingPartyId
public RegistrationClaimsSet.Builder withRelyingPartyId(@Nullable @NotEmpty String id)
Set the relying party identifier.- Parameters:
id- What to set.- Returns:
- The builder instance.
-
withClientId
public RegistrationClaimsSet.Builder withClientId(@Nullable @NotEmpty String id)
Set the client identifier.- Parameters:
id- What to set- Returns:
- The builder instance.
-
withReplacement
public RegistrationClaimsSet.Builder withReplacement(@Nullable Boolean flag)
Set the flag to signal replacement use of the token.- Parameters:
flag- What to set- Returns:
- The builder instance
-
build
@Nonnull public RegistrationClaimsSet build()
Build the claims set object.- Returns:
- The claims set object.
-
-