Package org.keyczar.exceptions

Examples of org.keyczar.exceptions.ShortSignatureException


   * occurs.
   */
  public boolean verify(ByteBuffer data, ByteBuffer timeoutSignature)
      throws KeyczarException {
    if (timeoutSignature.remaining() < Keyczar.HEADER_SIZE + Signer.TIMESTAMP_SIZE) {
      throw new ShortSignatureException(timeoutSignature.remaining());
    }
    byte[] header = new byte[Keyczar.HEADER_SIZE];
    timeoutSignature.get(header);

    // Get the timestamp and check that it has not expired
View Full Code Here


   */
  boolean verify(ByteBuffer data, ByteBuffer hidden,
      ByteBuffer signature) throws KeyczarException {
    LOG.debug(Messages.getString("Verifier.Verifying", data.remaining()));
    if (signature.remaining() < HEADER_SIZE) {
      throw new ShortSignatureException(signature.remaining());
    }

    byte version = signature.get();
    if (version != FORMAT_VERSION) {
      throw new BadVersionException(version);
View Full Code Here

TOP

Related Classes of org.keyczar.exceptions.ShortSignatureException

Copyright © 2018 www.massapicom. 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.