public class ResetWindowsPassword extends Object implements com.google.common.base.Function<Map<String,?>,String>
Instance.SerialPortOutput
Modifier | Constructor and Description |
---|---|
protected |
ResetWindowsPassword(GoogleComputeEngineApi api,
Crypto crypto,
com.google.common.base.Predicate<AtomicReference<Operation>> operationDone) |
Modifier and Type | Method and Description |
---|---|
String |
apply(Map<String,?> params) |
protected String |
decryptPassword(String message,
KeyPair keys)
Decrypts the given password - the encrypted text is base64-encoded.
|
protected Map<String,String> |
extractKeyMetadata(KeyPair pair,
String userName,
String email)
Generates the metadata value for this keypair.
|
@Named(value="jclouds.compute") protected Logger logger
@Inject protected ResetWindowsPassword(GoogleComputeEngineApi api, Crypto crypto, com.google.common.base.Predicate<AtomicReference<Operation>> operationDone)
protected String decryptPassword(String message, KeyPair keys) throws InvalidKeyException, IllegalBlockSizeException, BadPaddingException
protected Map<String,String> extractKeyMetadata(KeyPair pair, String userName, String email) throws NoSuchAlgorithmException, InvalidKeySpecException
pair
- NoSuchAlgorithmException
InvalidKeySpecException
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.