org.jclouds.crypto
Class Macs

java.lang.Object
  extended by org.jclouds.crypto.Macs

@Beta
public class Macs
extends Object

functions for Mac

Author:
Adrian Cole

Constructor Summary
Macs()
           
 
Method Summary
static com.google.common.io.ByteProcessor<byte[]> asByteProcessor(Mac mac)
          Computes and returns the MAC value for a supplied input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Macs

public Macs()
Method Detail

asByteProcessor

public static com.google.common.io.ByteProcessor<byte[]> asByteProcessor(Mac mac)
Computes and returns the MAC value for a supplied input stream.

Parameters:
mac - the mac object
Returns:
the result of Mac.doFinal() on ByteProcessor.getResult()


Copyright © 2009-2013 jclouds. All Rights Reserved.