Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.coherence.rest.server
Class AbstractHttpServer.SimpleSecurityContext

java.lang.Object
  extended by com.tangosol.coherence.rest.server.AbstractHttpServer.SimpleSecurityContext

All Implemented Interfaces:
javax.ws.rs.core.SecurityContext
Enclosing class:
AbstractHttpServer

protected static class AbstractHttpServer.SimpleSecurityContext
extends java.lang.Object
implements javax.ws.rs.core.SecurityContext

Simple implementation of the SecurityContext interface.


Field Summary

 

Fields inherited from interface javax.ws.rs.core.SecurityContext
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH

 

Constructor Summary
protected AbstractHttpServer.SimpleSecurityContext(java.lang.String sAuthScheme, java.security.Principal principal, boolean fSecure)
          Create a new SimpleSecurityContext instance.

 

Method Summary
 java.lang.String getAuthenticationScheme()
          Return the string value of the authentication scheme used to protect the resource.
 java.security.Principal getUserPrincipal()
          Return a Principal object containing the name of the current authenticated user.
 boolean isSecure()
          Return a boolean indicating whether this request was made using a secure channel, such as HTTPS.
 boolean isUserInRole(java.lang.String sRole)
          Return a boolean indicating whether the authenticated user is included in the specified logical "role".

 

Constructor Detail

AbstractHttpServer.SimpleSecurityContext

protected AbstractHttpServer.SimpleSecurityContext(java.lang.String sAuthScheme,
                                                   java.security.Principal principal,
                                                   boolean fSecure)
Create a new SimpleSecurityContext instance.
Parameters:
sAuthScheme - string value of the authentication scheme used to protect resources
principal - the Principal containing the name of the current authenticated user
fSecure - a boolean value indicating whether a request was made using a secure channel, such as HTTPS

Method Detail

getAuthenticationScheme

public java.lang.String getAuthenticationScheme()
Return the string value of the authentication scheme used to protect the resource.
Specified by:
getAuthenticationScheme in interface javax.ws.rs.core.SecurityContext

getUserPrincipal

public java.security.Principal getUserPrincipal()
Return a Principal object containing the name of the current authenticated user.
Specified by:
getUserPrincipal in interface javax.ws.rs.core.SecurityContext

isSecure

public boolean isSecure()
Return a boolean indicating whether this request was made using a secure channel, such as HTTPS.
Specified by:
isSecure in interface javax.ws.rs.core.SecurityContext

isUserInRole

public boolean isUserInRole(java.lang.String sRole)
Return a boolean indicating whether the authenticated user is included in the specified logical "role".
Specified by:
isUserInRole in interface javax.ws.rs.core.SecurityContext
Parameters:
sRole - the name of the role

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.