Class AppAuthentication
java.lang.Object
com.erudika.para.server.security.AppAuthentication
- All Implemented Interfaces:
Serializable, Principal
A simple wrapper for the authentication object.
- Author:
- Alex Bogdanovski [[email protected]]
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority> A list of roles for the authenticated application.Always null (unused).The application object.getName()The application identifier.The application object.booleanChecks if the application is authenticated.voidsetAuthenticated(boolean isAuthenticated) Not supported.
-
Constructor Details
-
AppAuthentication
public AppAuthentication(com.erudika.para.core.App principal) Default constructor.- Parameters:
principal- the application object
-
-
Method Details
-
getAuthorities
A list of roles for the authenticated application.- Returns:
- a list of roles
-
getCredentials
-
getDetails
-
getPrincipal
-
isAuthenticated
public boolean isAuthenticated()Checks if the application is authenticated.- Returns:
- true if authenticated
-
setAuthenticated
public void setAuthenticated(boolean isAuthenticated) Not supported.- Parameters:
isAuthenticated- true if authenticated
-
getName
-