Examples of Principal


Examples of java.security.Principal

      boolean result = false;
     
      String authMethod = config.getAuthMethod();

      // Have we already authenticated someone?
      Principal principal = request.getUserPrincipal();
      String ssoId = (String) request.getNote(Constants.REQ_SSOID_NOTE);
      if (principal != null) {
         log.trace("Already authenticated '" + principal.getName() + "'");
         // Associate the session with any existing SSO session
         if (ssoId != null)
            associate(ssoId, request.getSessionInternal(true));
         return (true);
      }
View Full Code Here

Examples of java.security.Principal

      }

      // prepare security data
      final SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider();
      final SecurityAdaptor securityAdaptor = spiProvider.getSPI(SecurityAdaptorFactory.class).newSecurityAdapter();
      final Principal principal = securityAdaptor.getPrincipal();
      final Object credential = securityAdaptor.getCredential();

      // prepare invocation data
      final Method method = wsInvocation.getJavaMethod();
      final Object[] args = wsInvocation.getArgs();
View Full Code Here

Examples of java.security.Principal

   @Override
   public boolean authenticate(Request request, HttpServletResponse response, LoginConfig config) throws IOException
   {
      log.trace("Authenticating user");

      Principal principal = request.getUserPrincipal();
      if (principal != null)
      {
         if (trace)
            log.trace("Already authenticated '" + principal.getName() + "'");
         return true;
      }

      Realm realm = context.getRealm();
      Session session = request.getSessionInternal(true);
View Full Code Here

Examples of java.security.Principal

      {
         status = gam.validateRequest(authParam, clientSubject, serviceSubject);
         if(status.equals(AuthStatus.FAILURE))
            throw new SecurityException("Authentication failed");
      }
      Principal authenticatedPrincipal = this.getAuthenticatedPrincipal(clientSubject);
      return null;
      /*
      AuthorizationManager authzManager = getAuthorizationManager();
      Principal callerPrincipal = getAuthenticationManager().getPrincipal(authenticatedPrincipal);
      return getCachingPrincipal(authzManager, authenticatedPrincipal, callerPrincipal, null, clientSubject);
View Full Code Here

Examples of neoAtlantis.entornos.jpc.gui.Principal

    public JProjectCreator() {
        debug.escribeDebug(this.getClass(), "Inicia Programa V. " + JProjectCreator.VERSION + ".");

        //carga la ventana principal
        this.ven = new Principal(this);

        //cargo configuracion
//        this.config = ConfiguracionJPC.cargaConfiguracion(ConfiguracionJPC.ARC_CONFIG);
//        debug.escribeDebug(this.getClass(), "Cargo configuracion:\n" + this.config);
//        validaGeneradores();
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.data.Principal

            for (Ace ace : source.getAces()) {
                if (ace != null) {
                    writer.writeStartElement(PREFIX_CMIS, TAG_ACL_PERMISSISONS, NAMESPACE_CMIS);

                    if (ace.getPrincipal() != null) {
                        Principal principal = ace.getPrincipal();

                        writer.writeStartElement(PREFIX_CMIS, TAG_ACE_PRINCIPAL, NAMESPACE_CMIS);

                        XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_ACE_PRINCIPAL_ID, principal.getId());

                        writeExtensions(writer, principal);
                        writer.writeEndElement();
                    }
                    if (ace.getPermissions() != null) {
View Full Code Here

Examples of org.apache.cocoon.components.repository.Principal

    public void setup(SourceResolver resolver, Map objectModel, String location, Parameters parameters)
        throws ProcessingException, SAXException, IOException {
        super.setup(resolver, objectModel, location, parameters);

        try {
            this.principalcaller = new Principal(parameters.getParameter("principalcaller", "guest"));
            this.principalprovidername = parameters.getParameter("principalprovider");
        } catch (ParameterException pe) {
            throw new ProcessingException("Could not retrieve parameters", pe);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.jee.security.Principal

        loginDomainPrincipal.setClazz("security-role-logindomainprincipal-class");
        description = securityFactory.createDescription();
        description.setValue("security-role-logindomainprincipal-description");
        loginDomainPrincipal.getDescription().add(description);
        role.getLoginDomainPrincipal().add(loginDomainPrincipal);
        Principal principal = securityFactory.createPrincipal();
        principal.setName("security-role-principal-name");
        principal.setClazz("security-role-principal-class");
        description = securityFactory.createDescription();
        description.setValue("security-role-principal-description");
        principal.getDescription().add(description);
        role.getPrincipal().add(principal);
        RealmPrincipal realmPrincipal = securityFactory.createRealmPrincipal();
        realmPrincipal.setName("security-role-realmprincipal-name");
        realmPrincipal.setClazz("security-role-realmprincipal-class");
        description = securityFactory.createDescription();
View Full Code Here

Examples of org.apache.geronimo.security.deploy.Principal

            while (realms.hasNext()) {
                Realm realm = (Realm) realms.next();

                Iterator principals = realm.getPrincipals().iterator();
                while (principals.hasNext()) {
                    Principal principal = (Principal) principals.next();

                    RealmPrincipal realmPrincipal = ConfigurationUtil.generateRealmPrincipal(principal, realm.getRealmName());

                    if (realmPrincipal == null) throw new DeploymentException("Unable to create realm principal");

                    principalSet.add(realmPrincipal);
                    if (principal.isDesignatedRunAs()) roleDesignate.getPrincipals().add(realmPrincipal);
                }
            }

            for (Iterator names = role.getDNames().iterator(); names.hasNext();) {
                DistinguishedName dn = (DistinguishedName) names.next();
View Full Code Here

Examples of org.apache.harmony.jretools.policytool.model.Principal

                final int[] principalNameIndices = peekQuotedStringAhead( classNameIndices[ 1 ] );
                if ( principalNameIndices == null )
                    throw new InvalidPolicyTextException( "Invalid grant entry, found no name for principal!" );

                final Principal principal = new Principal();
                principal.setType( policyText.substring( classNameIndices[ 0 ], classNameIndices[ 1 ] ) );
                principal.setName( policyText.substring( principalNameIndices[ 0 ] + 1, principalNameIndices[ 1 ] - 1 ) );
                grantEntry.getPrincipalList().add( principal );

                newIndex = principalNameIndices[ 1 ];
            }
        }
View Full Code Here
TOP
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.