AuthenticationService  v0.2.0
Public Member Functions | Public Attributes | Properties | List of all members
Joutsen.AuthenticationService.Application Class Reference

A class representing the json data structure of an application. More...

Public Member Functions

 Application (String name=null, String key=null)
 Creates a new instance for a token. More...
 
ErrorMessage Validate ()
 Validates the state of the model. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 

Public Attributes

const String VALIDATION_ERROR_MESSAGE = "The applicationName or the applicationKey is required and cannnot be empty or consist only of whitespaces."
 

Properties

String Key [get]
 The key of the application. More...
 
String Name [get]
 

Detailed Description

A class representing the json data structure of an application.

Since
0.2.0

Constructor & Destructor Documentation

◆ Application()

Joutsen.AuthenticationService.Application.Application ( String  name = null,
String  key = null 
)

Creates a new instance for a token.

Member Function Documentation

◆ Equals()

override bool Joutsen.AuthenticationService.Application.Equals ( object  obj)

◆ GetHashCode()

override int Joutsen.AuthenticationService.Application.GetHashCode ( )

◆ Validate()

ErrorMessage Joutsen.AuthenticationService.Application.Validate ( )

Validates the state of the model.

Implements Joutsen.AuthenticationService.ValidatableModel.

Member Data Documentation

◆ VALIDATION_ERROR_MESSAGE

const String Joutsen.AuthenticationService.Application.VALIDATION_ERROR_MESSAGE = "The applicationName or the applicationKey is required and cannnot be empty or consist only of whitespaces."

Property Documentation

◆ Key

String Joutsen.AuthenticationService.Application.Key
get

The key of the application.

◆ Name

String Joutsen.AuthenticationService.Application.Name
get