Package org.openhab.core.io.rest.auth
Class AnonymousUserSecurityContext
java.lang.Object
org.openhab.core.io.rest.auth.AnonymousUserSecurityContext
- All Implemented Interfaces:
- javax.ws.rs.core.SecurityContext
@NonNullByDefault
public class AnonymousUserSecurityContext
extends Object
implements javax.ws.rs.core.SecurityContext
This 
SecurityContext can be used to give anonymous users (i.e. unauthenticated requests) the "user" role.- Author:
- Yannick Schaus - initial contribution
- 
Field SummaryFields inherited from interface javax.ws.rs.core.SecurityContextBASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription@Nullable String@Nullable PrincipalbooleanisSecure()booleanisUserInRole(@Nullable String role) 
- 
Constructor Details- 
AnonymousUserSecurityContextpublic AnonymousUserSecurityContext()
 
- 
- 
Method Details- 
getUserPrincipal- Specified by:
- getUserPrincipalin interface- javax.ws.rs.core.SecurityContext
 
- 
isUserInRole- Specified by:
- isUserInRolein interface- javax.ws.rs.core.SecurityContext
 
- 
isSecurepublic boolean isSecure()- Specified by:
- isSecurein interface- javax.ws.rs.core.SecurityContext
 
- 
getAuthenticationScheme- Specified by:
- getAuthenticationSchemein interface- javax.ws.rs.core.SecurityContext
 
 
-