Examples of Security


Examples of org.opensaml.ws.wssecurity.Security

*/
public class SecurityUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        Security security = (Security) xmlObject;
        XMLHelper.unmarshallToAttributeMap(security.getUnknownAttributes(), attribute);
    }
View Full Code Here

Examples of org.pentaho.metadata.model.concept.security.Security

  private List<IPentahoAclEntry> accessControls = new ArrayList<IPentahoAclEntry>();

  public PentahoMetadataAclHolder( final IConcept aclHolder ) {
    try {
      Security sec = (Security) aclHolder.getProperty( Concept.SECURITY_PROPERTY );
      if ( sec != null ) {
        Map<SecurityOwner, Integer> securityMap = sec.getOwnerAclMap();
        SecurityOwner secOwn = null;
        for ( Map.Entry<SecurityOwner, Integer> entry : securityMap.entrySet() ) {
          // We now have the SecurityOwner and the Rights in there.
          secOwn = entry.getKey();
          int rights = entry.getValue().intValue();
View Full Code Here

Examples of org.platformlayer.ops.service.Security

      }
    }
  }

  public void initialize(ServiceProviderBase serviceProvider) throws OpsException {
    Security security = ResourceUtils.findResource(serviceProvider.getClass(), "security", Security.class);
    if (security != null) {
      applySecurity(security);
    }
  }
View Full Code Here

Examples of org.reficio.ws.client.core.Security

                return user.equals("tom") && pass.equals("007");
            }
        });
        try {

            final Security security = Security.builder()
                    .authBasic("tom", "007")
                    .build();

            verifyServiceBehavior(1, new ClientBuilder() {
                @Override
View Full Code Here

Examples of org.sonatype.nexus.client.core.subsystem.config.Security

  @Test
  public void automaticallyEnableRealmWhenCapabilityCreated()
      throws Exception
  {
    // check that realm is added
    Security security = serverConfiguration().security();
    assertThat(security.settings().getRealms(), not(hasItem(RUTAUTH_REALM)));
    configureRemoteHeader("REMOTE_USER");
    assertThat(security.refresh().settings().getRealms(), hasItem(RUTAUTH_REALM));
    // check that we do not add the realm once more when we update
    List<String> realmsBeforeUpdate = security.refresh().settings().getRealms();
    configureRemoteHeader("REMOTE_AUTH");
    assertThat(
        security.refresh().settings().getRealms(),
        containsInAnyOrder(realmsBeforeUpdate.toArray(new String[realmsBeforeUpdate.size()]))
    );
  }
View Full Code Here

Examples of org.structr.core.entity.Security

          App app = StructrApp.getInstance(securityContext);
         
          app.create(owner, (NodeInterface)node, PrincipalOwnsNode.class);
         
          Security securityRel = app.create(owner, (NodeInterface)node, Security.class);
          securityRel.setAllowed(Permission.values());

          node.unlockReadOnlyPropertiesOnce();
          node.setProperty(AbstractNode.createdBy, user.getProperty(GraphObject.id));
        }
View Full Code Here

Examples of org.vaadin.spring.security.Security

        try {
            accessDecisionManager = applicationContext.getBean(AccessDecisionManager.class);
        } catch (NoSuchBeanDefinitionException ex) {
            accessDecisionManager = null;
        }
        return new Security(authenticationManager, accessDecisionManager, applicationContext);
    }
View Full Code Here

Examples of simon.model.Security

            throw new ServletException(ex);
        }

        //only continue if the username/password has been verified
        if (passwordVerified) {
            iSecurity security = new Security();
           
            //verify the credit card number - only continue if it has been verified
            if (security.ValidateCreditCard(cardNo)) {
                Boolean orderCreated = false;
                Timestamp orderDate = new Timestamp(new Date().getTime()); //record the current time

                //retrieve the order object stored as a session attribute
                //store the current time as the order date
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.