org.jclouds.oauth.v2.functions
Class SignOrProduceMacForToken
java.lang.Object
org.jclouds.oauth.v2.functions.SignOrProduceMacForToken
- All Implemented Interfaces:
- com.google.common.base.Function<byte[],byte[]>
public class SignOrProduceMacForToken
- extends Object
- implements com.google.common.base.Function<byte[],byte[]>
Function that signs/produces mac's for OAuth tokens, provided a Signature or a Mac algorithm and
PrivateKey
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Function |
equals |
SignOrProduceMacForToken
@Inject
public SignOrProduceMacForToken(@Named(value="jclouds.oauth.signature-or-mac-algorithm")
String signatureOrMacAlgorithm,
com.google.common.base.Supplier<OAuthCredentials> credentials)
loadSignatureOrMacOrNone
@PostConstruct
public void loadSignatureOrMacOrNone()
throws InvalidKeyException,
NoSuchAlgorithmException
- Throws:
InvalidKeyException
NoSuchAlgorithmException
apply
public byte[] apply(byte[] input)
- Specified by:
apply in interface com.google.common.base.Function<byte[],byte[]>
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.