Examples of SecurityContext

Examples of br.gov.frameworkdemoiselle.security.SecurityContext


  private boolean performLogin(String header, HttpServletRequest request) {
    boolean result = false;
    SecurityContext securityContext = Beans.getReference(SecurityContext.class);

    if (header != null) {
      String[] basicCredentials = getCredentials(header);

      Credentials credentials = Beans.getReference(Credentials.class);

      result = securityContext.isLoggedIn();

    return result;
View Full Code Here

Examples of com.force.sdk.oauth.context.SecurityContext

        //If a user has been authenticated then the information about that user must be stored
        if (auth != null && auth.getPrincipal() instanceof ForceUserPrincipal) {
            ForceUserPrincipal user = (ForceUserPrincipal) auth.getPrincipal();
            ForceConnectorConfig cc = new ForceConnectorConfig();
            SecurityContext sc = (SecurityContext) auth.getDetails();
            //The security context holder handles the storage of the security context

            //The ForceServiceConnector handles the storage of the connector config and will use this config going forward
View Full Code Here

Examples of com.hazelcast.security.SecurityContext

            checkPermissions(endpoint, request);

        private void checkPermissions(ClientEndpoint endpoint, ClientRequest request) {
            SecurityContext securityContext = getSecurityContext();
            if (securityContext != null) {
                Permission permission = request.getRequiredPermission();
                if (permission != null) {
                    securityContext.checkPermission(endpoint.getSubject(), permission);
View Full Code Here

Examples of com.sas.svcs.authentication.client.SecurityContext

                try {
                    Object localObject1 = null;

                    String sessionId = paramHttpServletRequest.getParameter("saspfs_sessionid");
                    if ((sessionId != null) && (sessionId.length() > 1)) {
                        localObject1 = new SecurityContext(sessionId);
                        localObject1 = this.authService.reconnect((SecurityContext) localObject1);
                        if (localObject1 == null) {
                            showErrorMessage(paramHttpServletRequest, paramHttpServletResponse, new StringBuilder().append("Invalid session id '").append(sessionId).append("' passed. Authentication failed.").toString());
View Full Code Here

Examples of com.sun.enterprise.common.iiop.security.SecurityContext

     * by the CSIv2 interceptor.
    public SecurityContext getSecurityContext(
            org.omg.CORBA.Object effective_target)
            throws InvalidMechanismException, InvalidIdentityTokenException {
        SecurityContext context = null;
        assert(orbHelper != null);
        IOR ior =  ((com.sun.corba.ee.spi.orb.ORB)orbHelper.getORB()).getIOR(effective_target, false);
        if (StubAdapter.isStub(effective_target)) {
            if (StubAdapter.isLocal(effective_target)) {
                // XXX: Workaround for non-null connection object ri for local invocation.
View Full Code Here

Examples of com.sun.enterprise.security.SecurityContext

            if (p != null) {
                return p;
        //This is a servlet endpoint
        SecurityContext ctx = SecurityContext.getCurrent();
        if (ctx == null) {
            return null;
        if (ctx.didServerGenerateCredentials()) {
            if (o instanceof WebModule) {
                return null;
        return ctx.getCallerPrincipal();
View Full Code Here

Examples of com.tll.server.SecurityContext

  private org.springframework.security.intercept.web.FilterSecurityInterceptor wrapped;

  public void init(FilterConfig config) throws ServletException {
    log.debug("Initializing the FilterSecurityInterceptor..");
    final SecurityContext sc = getSecurityContext(config);

    final String ods = config.getInitParameter("objectDefinitionSource");
    if(ods == null) {
      throw new Error("The init parameter 'objectDefinitionSource' must be declared");
View Full Code Here

Examples of inspiredbyte.examples.rules.annotations.SecurityContext

public class SecurityContextRule implements TestRule {

  public Statement apply(Statement base, Description description) {
    SecurityContext securityContext = description.getAnnotation(SecurityContext.class);

    return securityContext != null ? new SecurityContextStatement(base, getLoginId(securityContext),
        getAuthorities(securityContext)) : base;
View Full Code Here

Examples of io.undertow.security.api.SecurityContext

        return exchange;

    public String getAuthType() {
        SecurityContext securityContext = exchange.getSecurityContext();

        return securityContext != null ? securityContext.getMechanismName() : null;
View Full Code Here

Examples of javax.ws.rs.core.SecurityContext

    return false;

  public static boolean hasRole(String role){
    SecurityContext context = ResteasyProviderFactory.getContextData(SecurityContext.class);
    return context.isUserInRole(role);
View Full Code Here
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.