Examples of validate()


Examples of org.apache.poi.hssf.record.crypto.Biff8XORKey.validate()

      } else if (fpr.getXorKeyData() != null) {
          XorKeyData xor = fpr.getXorKeyData();
          Biff8XORKey xorKey = Biff8XORKey.create(userPassword, xor.getKey());
          key = xorKey;
         
          if (!xorKey.validate(userPassword, xor.getVerifier())) {
                    throw new EncryptedDocumentException(
                    (Decryptor.DEFAULT_PASSWORD.equals(userPassword) ? "Default" : "Supplied")
                    + " password is invalid for key/verifier");
          }
      } else {
View Full Code Here

Examples of org.apache.poi.poifs.crypt.dsig.SignatureInfo.SignaturePart.validate()

       
        // verify
        Iterator<SignaturePart> spIter = si.getSignatureParts().iterator();
        assertTrue(spIter.hasNext());
        SignaturePart sp = spIter.next();
        boolean valid = sp.validate();
        assertTrue(valid);
       
        SignatureDocument sigDoc = sp.getSignatureDocument();
        String declareNS =
            "declare namespace xades='http://uri.etsi.org/01903/v1.3.2#'; "
View Full Code Here

Examples of org.apache.shale.component.Token.validate()

        // simulate apply values
        token.decode(facesContext);
        assertEquals("value", value, token.getSubmittedValue());
        
        // simulate validation and invalidates token
        token.validate(facesContext);
       
        checkNoMessages(token);
       
        // simulate double post
        token.validate(facesContext);
View Full Code Here

Examples of org.apache.sirona.boomerang.parser.BoomerangData.validate()

    }

    @Override
    protected void service(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {
        final BoomerangData data = parse(toMap(req.getQueryString()));
        if (data.validate()) { // no url
            // convert to counters
            final String name = new URL(data.getUrl()).getPath(); // skip query
            if (data.getTDone() != null) {
                addToCounter(BOOMERANG_PERCEIVED, name, data.getTDone());
            }
View Full Code Here

Examples of org.apache.slide.content.NodeRevisionContent.validate()

                // Wrap everything else in a ServiceAccessException
                throw new ServiceAccessException
                    (contentStore, t);
            }
        }
        revisionContent.validate();
        return revisionContent;
    }
   
   
    /**
 
View Full Code Here

Examples of org.apache.slide.content.NodeRevisionDescriptor.validate()

                if (result != null) {
                    return ((NodeRevisionDescriptor) result).cloneObject();
                } else {
                    NodeRevisionDescriptor revisionDescriptor =
                        revisionDescriptorStore.retrieveRevisionDescriptor(uri, revisionNumber);
                    revisionDescriptor.validate();
                    descriptorCache.put(uri + "-" + revisionNumber, revisionDescriptor);
                    return revisionDescriptor.cloneObject();
                }
            } finally {
                if (isForceStoreEnlistment(uri)) {
View Full Code Here

Examples of org.apache.slide.content.NodeRevisionDescriptors.validate()

                    return ((NodeRevisionDescriptors) tempObject).cloneObject();
                } else {
                    NodeRevisionDescriptors revisionDescriptors =
                        revisionDescriptorsStore.retrieveRevisionDescriptors(uri);
                    descriptorsCache.put(uri.toString(), revisionDescriptors);
                    revisionDescriptors.validate(uri.toString());
                    return revisionDescriptors.cloneObject();
                }
            } finally {
                if (isForceStoreEnlistment(uri)) {
                    delist(this);
View Full Code Here

Examples of org.apache.slide.lock.NodeLock.validate()

                if (value == null) {
                    locksVector = new Vector();
                    Enumeration lockList = lockStore.enumerateLocks(uri);
                    while (lockList.hasMoreElements()) {
                        NodeLock tempLock = (NodeLock) lockList.nextElement();
                        tempLock.validate(uri.toString());
                        locksVector.addElement(tempLock);
                    }
                    locksCache.put(uri.toString(), locksVector);
                } else {
                    locksVector = (Vector) value;
View Full Code Here

Examples of org.apache.slide.security.NodePermission.validate()

                } else {
                    permissionsVector = new Vector();
                    Enumeration tempEnum = securityStore.enumeratePermissions(uri);
                    while (tempEnum.hasMoreElements()) {
                        NodePermission tempPermission = (NodePermission) tempEnum.nextElement();
                        tempPermission.validate(uri.toString());
                        permissionsVector.addElement(tempPermission);
                    }
                    permissionsCache.put(uri.toString(), permissionsVector);
                }
                return ((Vector) permissionsVector.clone()).elements();
View Full Code Here

Examples of org.apache.slide.structure.ObjectNode.validate()

                Object tempObject = objectsCache.get(uri.toString());
                if (tempObject != null) {
                    return ((ObjectNode) tempObject).cloneObject();
                } else {
                    ObjectNode objectNode = super.retrieveObject(uri);
                    objectNode.validate(uri.toString());
                    objectsCache.put(uri.toString(), objectNode);
                    return objectNode.cloneObject();
                }
            } finally {
                if (isForceStoreEnlistment(uri)) {
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.