AuthenticationService v0.3.0+7-g8a7f190
Public Member Functions | Properties | List of all members
Joutsen.Authentication.Jwt.JwtRole Class Reference

An implementation of a role as it is read from a JWT token. More...

Public Member Functions

 JwtRole (String name, Application application, String username)
 Creates a new instance. More...
 

Properties

String Name [get]
 The human friendly name of the role. More...
 
String Description [get]
 The description is intended for details about the role but tokens do not carry any details. More...
 
Application Application [get]
 The application this role belongs to. More...
 
String Username [get]
 The user who has this role. More...
 
- Properties inherited from Joutsen.Authentication.Role
long Id [get]
 The unique identifier of the role. More...
 
String Name [get]
 The human friendly name of the role. More...
 
Application Application [get]
 The application this role belongs to. More...
 
String Username [get]
 The name of the user who is granted rights by this role. More...
 
String Description [get]
 Some details about the role. More...
 

Detailed Description

An implementation of a role as it is read from a JWT token.

Since
0.1.0

Constructor & Destructor Documentation

◆ JwtRole()

Joutsen.Authentication.Jwt.JwtRole.JwtRole ( String  name,
Application  application,
String  username 
)

Creates a new instance.

Parameters
namethe name of the role
applicationthe application this role belongs to
usernamethe user who is granted rights by this role

Property Documentation

◆ Application

Application Joutsen.Authentication.Jwt.JwtRole.Application
get

The application this role belongs to.

Implements Joutsen.Authentication.Role.

◆ Description

String Joutsen.Authentication.Jwt.JwtRole.Description
get

The description is intended for details about the role but tokens do not carry any details.

Implements Joutsen.Authentication.Role.

◆ Name

String Joutsen.Authentication.Jwt.JwtRole.Name
get

The human friendly name of the role.

Implements Joutsen.Authentication.Role.

◆ Username

String Joutsen.Authentication.Jwt.JwtRole.Username
get

The user who has this role.

Implements Joutsen.Authentication.Role.