Examples of Timestamp


Examples of br.net.woodstock.rockframework.security.timestamp.TimeStamp

      if (timeStampClient != null) {
        SignerInformationStore signerInformationStore = signedData.getSignerInfos();
        List list = new ArrayList();
        for (Object o : signerInformationStore.getSigners()) {
          SignerInformation signerInformation = (SignerInformation) o;
          TimeStamp timeStamp = timeStampClient.getTimeStamp(signerInformation.getSignature());
          ASN1Primitive asn1Primitive = BouncyCastleProviderHelper.toASN1Primitive(timeStamp.getEncoded());
          DERSet derSet = new DERSet(asn1Primitive);

          Hashtable hashtable = new Hashtable();
          Attribute attribute = new Attribute(PKCSObjectIdentifiers.id_aa_signatureTimeStampToken, derSet);
          hashtable.put(PKCSObjectIdentifiers.id_aa_signatureTimeStampToken, attribute);
View Full Code Here

Examples of chirp.model.Timestamp

  @GET
  @Path("{timestamp}")
  @Produces(MediaType.APPLICATION_JSON)
  public PostRepresentation getPost(@PathParam("username") String username, @PathParam("timestamp") String timestamp) {
    Post post = userRepository.getUser(username).getPost(new Timestamp(timestamp));
    return new PostRepresentation(post, false);
  }
View Full Code Here

Examples of com.activequant.domainmodel.TimeStamp

                // get the field specific map
                Map<TimeStamp, Double> fieldMap;
                if (!instrumentMap.containsKey(field))
                    instrumentMap.put(field, new HashMap<TimeStamp, Double>());
                fieldMap = instrumentMap.get(field);
                TimeStamp t1 = new TimeStamp(parser.getNanoseconds(startDate8Time6));
                TimeStamp t2 = new TimeStamp(parser.getNanoseconds(endDate8Time6));
                TSContainer ts = archiveFactory.getReader(tf).getTimeSeries(instrument, field, t1, t2);
                if (ts.timeStamps.length > 0) {
                    for (int k = 0; k < ts.timeStamps.length; k++) {
                        TimeStamp timeStamp = ts.timeStamps[k];
                        Double value = ts.values[k];
                        // TODO: have to reduce the granularity.
                        if (!timeStamps.contains(timeStamp))
                            timeStamps.add(timeStamp);
                        fieldMap.put(timeStamp, value);
View Full Code Here

Examples of com.github.stephenc.javaisotools.udflib.structures.Timestamp

        metadataExtendedFileEntry.DescriptorTag.DescriptorVersion = 3;

        metadataExtendedFileEntry.Uid = 0xFFFFFFFF;
        metadataExtendedFileEntry.Gid = 0xFFFFFFFF;

        metadataExtendedFileEntry.AccessTime = new Timestamp(recordingTimeCalendar);
        metadataExtendedFileEntry.ModificationTime = new Timestamp(recordingTimeCalendar);
        metadataExtendedFileEntry.AttributeTime = new Timestamp(recordingTimeCalendar);
        metadataExtendedFileEntry.CreationTime = new Timestamp(recordingTimeCalendar);

        metadataExtendedFileEntry.Checkpoint = 1;

        metadataExtendedFileEntry.ImplementationIdentifier.setIdentifier(applicationIdentifier);
        metadataExtendedFileEntry.ImplementationIdentifier.IdentifierSuffix = applicationIdentifierSuffix;
View Full Code Here

Examples of com.odiago.flumebase.lang.Timestamp

  }

  @Override
  public Object eval(EventWrapper event, Object... args) {
    Event e = event.getEvent();
    return new Timestamp(e.getTimestamp(), e.getNanos());
  }
View Full Code Here

Examples of com.sleepycat.je.utilint.Timestamp

                         long matchpointLSN,
                         Set<Long> activeTxnIds) {
        this.matchpointVLSN = matchpointVLSN;
        this.matchpointLSN = matchpointLSN;
        this.activeTxnIds = activeTxnIds;
        time = new Timestamp(System.currentTimeMillis());
    }
View Full Code Here

Examples of com.subgraph.orchid.data.Timestamp


  public Timestamp parseTimestamp() {
    String timeAndDate = getItem() + " " + getItem();
    try {
      return new Timestamp(dateFormat.parse(timeAndDate));
    } catch (ParseException e) {
      throw new TorParsingException("Could not parse timestamp value: "+ timeAndDate);
    }
  }
View Full Code Here

Examples of com.sun.jna.platform.win32.Sspi.TimeStamp

      assertTrue(username.length() > 0);
    }
   
    public void testAcquireCredentialsHandle() {
      CredHandle phCredential = new CredHandle();
      TimeStamp ptsExpiry = new TimeStamp();
      assertEquals(W32Errors.SEC_E_OK, Secur32.INSTANCE.AcquireCredentialsHandle(
          null, "Negotiate", Sspi.SECPKG_CRED_OUTBOUND, null, null, null,
          null, phCredential, ptsExpiry));
      assertTrue(phCredential.dwLower != null);
      assertTrue(phCredential.dwUpper != null);
View Full Code Here

Examples of com.sun.xml.wss.core.Timestamp

             context.timestampExported(true);

         } else {    
            
             // Processing inbound messages            
             Timestamp timestamp = null;
            
             if (context.getMode() == FilterProcessingContext.ADHOC) {
                
                 if (context.makeDynamicPolicyCallback()) {
                     TimestampPolicy policyClone = (TimestampPolicy)
                         ((TimestampPolicy)context.getSecurityPolicy()).clone();
         try {
                         DynamicApplicationContext dynamicContext =
                             new DynamicApplicationContext (context.getPolicyContext ());

                         dynamicContext.setMessageIdentifier (context.getMessageIdentifier ());
                         dynamicContext.inBoundMessage (true);
                         DynamicPolicyCallback callback =
                             new DynamicPolicyCallback (policyClone, dynamicContext);
                         ProcessingContext.copy (dynamicContext.getRuntimeProperties(), context.getExtraneousProperties());
                         HarnessUtil.makeDynamicPolicyCallback(callback,
                             context.getSecurityEnvironment().getCallbackHandler());

                     } catch (Exception e) {
                    log.log(Level.SEVERE, LogStringsMessages.WSS_1436_MESSAGE_DOESNOT_CONFORM_TIMESTAMP_POLICY(), e);
                         throw new XWSSecurityException (e);
                     }
                     context.setSecurityPolicy(policyClone);
                 }
                
                 TimestampPolicy policy = (TimestampPolicy) context.getSecurityPolicy();
                 long maxClockSkew = policy.getMaxClockSkew ();
                 long timeStampFreshness = policy.getTimestampFreshness ();

                 SecurityHeader secHeader = context.getSecurableSoapMessage().findSecurityHeader();
                 if (secHeader == null) {
             log.log(Level.SEVERE, com.sun.xml.wss.logging.LogStringsMessages.WSS_0276_INVALID_POLICY_NO_TIMESTAMP_SEC_HEADER());
                         throw new XWSSecurityException(
                        "Message does not conform to Timestamp policy: " +
                  "wsu:Timestamp element not found in header");
                 }

                 SOAPElement ts = null;

                 try {
         SOAPFactory factory = SOAPFactory.newInstance();
         Name name = factory.createName(
                         MessageConstants.TIMESTAMP_LNAME,
             MessageConstants.WSU_PREFIX,
       MessageConstants.WSU_NS);
         Iterator i = secHeader.getChildElements (name);
                    
         if (i.hasNext()) {
             ts = (SOAPElement) i.next();
       if (i.hasNext()) {
                             log.log(Level.SEVERE, com.sun.xml.wss.logging.LogStringsMessages.BSP_3227_SINGLE_TIMESTAMP());
           throw new XWSSecurityException("More than one wsu:Timestamp element in the header");
       }
         } else {
        log.log(Level.SEVERE, com.sun.xml.wss.logging.LogStringsMessages.WSS_0276_INVALID_POLICY_NO_TIMESTAMP_SEC_HEADER());
       throw new XWSSecurityException(
                             "Message does not conform to Timestamp policy: " +
                 "wsu:Timestamp element not found in header");
         }
     } catch (SOAPException se) {
       // log
       throw new XWSSecurityRuntimeException (se);
     }

     try {
         timestamp = new Timestamp (ts);                    
                 } catch (XWSSecurityException xwsse) {
                     log.log(Level.SEVERE, LogStringsMessages.WSS_1429_ERROR_TIMESTAMP_INTERNALIZATION(), xwsse);
                    throw SecurableSoapMessage.newSOAPFaultException(
                         MessageConstants.WSSE_INVALID_SECURITY,
                         "Failure in Timestamp internalization.\n" +
View Full Code Here

Examples of com.twitter.summingbird.batch.Timestamp

  public void test() throws Exception {
    final List<String> mapped = new ArrayList<String>();
    final List<String> written = new ArrayList<String>();
    @SuppressWarnings("unchecked")
    List<Tuple2<Timestamp, String>> input = asList(
        new Tuple2<Timestamp, String>(new Timestamp(System.currentTimeMillis()), "foo"),
        new Tuple2<Timestamp, String>(new Timestamp(System.currentTimeMillis()), "bar"),
        new Tuple2<Timestamp, String>(new Timestamp(System.currentTimeMillis()), "baz")
        );
    JStorm storm = JStorm.local();
    JProducer<Storm, String> source = JStorm.source(
        new TraversableSpout<Tuple2<Timestamp, String>>(asScalaIterable(input), "field"),
        JProducers.<SourceParallelism>none());
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.