+ timeStampToken.getTimeStampInfo().getGenTime()); return timeStampToken.getEncoded();
return token.getEncoded();
/** * Returns a stream of bytes encoded in ASN.1 format, which represents the encoded object. * * @return timestamp encoded as a byte[] */ public byte[] getEncoded() { try { return timeStampToken.getEncoded(); } catch (IOException ex) { logger.info(ex.getMessage()); } return null; }
/** * Retorna um fluxo de byte codificado ASN. 1 que representa o objeto * codificado. * * @return */ public byte[] getCodificado() { try { return timeStampToken.getEncoded(); } catch (IOException ex) { logger.info(ex.getMessage()); } return null; }
/** * Returns the encoded (as ASN.1 DER) form of this {@code TimeStampToken}. * * @param timeStamp {@code TimeStampToken} * @return encoded array of bytes */ public static byte[] getEncoded(final TimeStampToken timeStamp) { try { return timeStamp.getEncoded(); } catch (IOException e) { throw new DSSException(e); } }
/** * Returns an ASN.1 encoded bytes representing the {@code TimeStampToken} * * @param timeStampToken {@code TimeStampToken} * @return Returns an ASN.1 encoded bytes representing the {@code TimeStampToken} */ public static byte[] getEncoded(final TimeStampToken timeStampToken) throws DSSException { try { final byte[] encoded = timeStampToken.getEncoded(); return encoded; } catch (IOException e) { throw new DSSException(e); } }
/** * Returns an ASN.1 encoded bytes representing the {@code TimeStampToken} * * @param timeStampToken * {@code TimeStampToken} * @return the binary of the {@code TimeStampToken} @ if the {@code * TimeStampToken} encoding fails */ public static byte[] getEncoded(final TimeStampToken timeStampToken) { try { return timeStampToken.getEncoded(); } catch (IOException e) { throw new DSSException(e); } }
/** * Add the specified {@link TimeStampToken} to the * {@link ValidateRequestType}. */ private void addTimeStampToken(ValidateRequestType validateRequest, TimeStampToken timeStampToken) { be.fedict.trust.xkms.extensions.ObjectFactory extensionsObjectFactory = new be.fedict.trust.xkms.extensions.ObjectFactory(); be.fedict.trust.client.jaxb.xades132.ObjectFactory xadesObjectFactory = new be.fedict.trust.client.jaxb.xades132.ObjectFactory(); TSAMessageExtensionType tsaMessageExtension = extensionsObjectFactory .createTSAMessageExtensionType(); EncapsulatedPKIDataType timeStampTokenValue = xadesObjectFactory .createEncapsulatedPKIDataType(); try { timeStampTokenValue.setValue(timeStampToken.getEncoded()); } catch (IOException e) { LOG.error("Failed to get encoded timestamp token", e); throw new RuntimeException(e); } tsaMessageExtension.setEncapsulatedTimeStamp(timeStampTokenValue); validateRequest.getMessageExtension().add(tsaMessageExtension); }
return token.getEncoded();
byte[] timestamp = timeStampToken.getEncoded(); return timestamp;
return tsToken.getEncoded();
byte[] encoded = tsToken.getEncoded(); long stop = System.currentTimeMillis();
byte[] encoded = tsToken.getEncoded(); long stop = System.currentTimeMillis();
byte[] encoded = tsToken.getEncoded(); long stop = System.currentTimeMillis();
CMSSignedData cmsSignedDataTimeStampToken = new CMSSignedData(timeStampToken.getEncoded());
final byte[] timeStampTokenBytes = timeStampToken.getEncoded(); final String base64EncodedTimeStampToken = DSSUtils.base64Encode(timeStampTokenBytes);
byte[] encoded = tsToken.getEncoded();
TimeStampTokenRes tsTokenRes; try { tsTokenRes = new TimeStampTokenRes(tsToken.getEncoded(), tsToken.getTimeStampInfo().getGenTime()); } catch (IOException ex) { throw new TimeStampTokenGenerationException("Encoding error", ex);
byte[] encoded = tsToken.getEncoded();
byte[] encoded = tsToken.getEncoded();