JWT
Handling JSON Web Tokens.
algorithmES
_jwt.algorithmES(bits: int) : io.jsonwebtoken.security.SignatureAlgorithm
Description
Gets the type of algorithm for signing of type ECDSA.
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| bits | int | Number of bits in the signature algorithm, it can be 256, 384 or 512. |
Return
( io.jsonwebtoken.security.SignatureAlgorithm )
Returns the signature algorithm type object.
algorithmHS
_jwt.algorithmHS(bits: int) : io.jsonwebtoken.security.MacAlgorithm
Description
Gets the type of algorithm for signing of type HMAC.
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| bits | int | Number of bits in the signature algorithm, it can be 256, 384 or 512. |
Return
( io.jsonwebtoken.security.MacAlgorithm )
Returns the signature algorithm type object.
algorithmPS
_jwt.algorithmPS(bits: int) : io.jsonwebtoken.security.SignatureAlgorithm
Description
Gets the type of algorithm for signing of type RSASS and MGF1.
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| bits | int | Number of bits in the signature algorithm, it can be 256, 384 or 512. |
Return
( io.jsonwebtoken.security.SignatureAlgorithm )
Returns the signature algorithm type object.
algorithmRS
_jwt.algorithmRS(bits: int) : io.jsonwebtoken.security.SignatureAlgorithm
Description
Gets the type of algorithm for signing of type RSASSA-PKCS1-v1_5.
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| bits | int | Number of bits in the signature algorithm, it can be 256, 384 or 512. |
Return
( io.jsonwebtoken.security.SignatureAlgorithm )
Returns the signature algorithm type object.
data
_jwt.data(token: string) : Values
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| token | string |
Return
( Values )
decode
_jwt.decode(token: string) : Values
Description
Encodes the values of the header and body inserted.
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| token | string | Acess code. |
Return
( Values )
Returns the values decoded.
enabled
_jwt.enabled() : boolean
Description
Verify if the JWT is enable.
Return
( boolean )
Returns if is enabled.
_jwt.enabled(enabled: boolean) : JWT
Attributes
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| enabled | boolean |
Return
( JWT )