public class SecurityContextAdapter extends Object implements SecurityContext
SecurityContext
implementation that provides no user Principal
,
has no role or user database, is
not secure, and that does not require authentication.SecurityContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
SecurityContextAdapter()
Creates a new
SecurityContextAdapter . |
Modifier and Type | Method and Description |
---|---|
String |
getAuthenticationScheme()
Returns
null when invoked. |
Principal |
getUserPrincipal()
Returns
null when invoked. |
boolean |
isSecure()
Returns
false in all cases. |
boolean |
isUserInRole(String role)
Returns
false in all cases. |
public SecurityContextAdapter()
SecurityContextAdapter
.public boolean isUserInRole(String role)
false
in all cases.isUserInRole
in interface SecurityContext
role
- ignored by this implementation; may be null
false
in all casesSecurityContext.isUserInRole(String)
public boolean isSecure()
false
in all cases.isSecure
in interface SecurityContext
false
in all casesSecurityContext.isSecure()
public Principal getUserPrincipal()
null
when invoked.getUserPrincipal
in interface SecurityContext
null
when invokedSecurityContext.getUserPrincipal()
public String getAuthenticationScheme()
null
when invoked.getAuthenticationScheme
in interface SecurityContext
null
when invokedSecurityContext.getAuthenticationScheme()
Copyright © 2019–2020, microBean™. All rights reserved.