Class SecurityAuthentication
- java.lang.Object
-
- net.sourceforge.plantuml.security.authentication.SecurityAuthentication
-
- All Implemented Interfaces:
SecurityCredentialsContainer
public class SecurityAuthentication extends java.lang.Object implements SecurityCredentialsContainer
The authentication to access an endpoint. This information will be generated by a SecurityAuthenticationInterceptor.
-
-
Constructor Summary
Constructors Constructor Description SecurityAuthentication(java.lang.String type, java.lang.String shape, java.lang.String grantType, java.util.Map<java.lang.String,java.lang.Object> tokens)
SecurityAuthentication(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> tokens)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
eraseCredentials()
Get called, if the secret information should be erased.java.lang.String
getGrantType()
java.lang.String
getShape()
java.util.Map<java.lang.String,java.lang.Object>
getTokens()
java.lang.String
getType()
boolean
isPublic()
Requests the state of this authentication.
-
-
-
Constructor Detail
-
SecurityAuthentication
public SecurityAuthentication(java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> tokens)
-
SecurityAuthentication
public SecurityAuthentication(java.lang.String type, java.lang.String shape, java.lang.String grantType, java.util.Map<java.lang.String,java.lang.Object> tokens)
-
-
Method Detail
-
getType
public java.lang.String getType()
-
getShape
public java.lang.String getShape()
-
getGrantType
public java.lang.String getGrantType()
-
isPublic
public boolean isPublic()
Requests the state of this authentication.- Returns:
- true, if we have no authentication.
-
getTokens
public java.util.Map<java.lang.String,java.lang.Object> getTokens()
-
eraseCredentials
public void eraseCredentials()
Description copied from interface:SecurityCredentialsContainer
Get called, if the secret information should be erased.- Specified by:
eraseCredentials
in interfaceSecurityCredentialsContainer
-
-