Limit-KrJWTNotBefore
SYNOPSIS
Sets the NotBefore time for the JWT token builder.
SYNTAX
__AllParameterSets
Limit-KrJWTNotBefore [-Builder] <JwtTokenBuilder> [-UtcBefore] <datetime> [<CommonParameters>]
ALIASES
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION
This function sets the NotBefore time for the JWT token builder, specifying when the token becomes valid.
EXAMPLES
EXAMPLE 1
$builder = New-KrJWTTokenBuilder | Limit-KrJWTNotBefore -UtcBefore (Get-Date).AddMinutes(-5) This example creates a new JWT token builder and sets its NotBefore time to 5 minutes in the past.
PARAMETERS
-Builder
The JWT token builder to modify.
Type: Kestrun.Jwt.JwtTokenBuilder
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: true
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-UtcBefore
The UTC time before which the JWT token is not valid.
Type: System.DateTime
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
Kestrun.Jwt.JwtTokenBuilder
{{ Fill in the Description }}
OUTPUTS
[Kestrun.Jwt.JwtTokenBuilder]
The modified JWT token builder.
{{ Fill in the Description }}
Kestrun.Jwt.JwtTokenBuilder
{{ Fill in the Description }}
NOTES
This function is part of the Kestrun.Jwt module and is used to build JWT tokens Maps to JwtTokenBuilder.NotBefore