public class SignOrProduceMacForToken extends Object implements com.google.common.base.Function<byte[],byte[]>
Signature or a Mac algorithm and
PrivateKey| Constructor and Description |
|---|
SignOrProduceMacForToken(String signatureOrMacAlgorithm,
com.google.common.base.Supplier<OAuthCredentials> credentials) |
@Inject
public SignOrProduceMacForToken(@Named(value="jclouds.oauth.signature-or-mac-algorithm")
String signatureOrMacAlgorithm,
com.google.common.base.Supplier<OAuthCredentials> credentials)
@PostConstruct public void loadSignatureOrMacOrNone() throws InvalidKeyException, NoSuchAlgorithmException
public byte[] apply(byte[] input)
apply in interface com.google.common.base.Function<byte[],byte[]>Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.