/** * @see TemplateOptions#installPrivateKey(String) */ @Override public TerremarkVCloudTemplateOptions installPrivateKey(String privateKey) { return TerremarkVCloudTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * {@inheritDoc} */ @Override public NovaTemplateOptions installPrivateKey(String privateKey) { return NovaTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * @see TemplateOptions#installPrivateKey(String) */ @Override public VCloudTemplateOptions installPrivateKey(String privateKey) { return VCloudTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * {@inheritDoc} */ @Override public EC2TemplateOptions installPrivateKey(String privateKey) { return EC2TemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * @see TemplateOptions#installPrivateKey(String) */ @Override public GoGridTemplateOptions installPrivateKey(String privateKey) { return GoGridTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * @see TemplateOptions#installPrivateKey(String) */ @Override public CloudStackTemplateOptions installPrivateKey(String privateKey) { return CloudStackTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * @see TemplateOptions#installPrivateKey(String) */ @Override public GleSYSTemplateOptions installPrivateKey(String privateKey) { return GleSYSTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * {@inheritDoc} */ @Override public CloudSigmaTemplateOptions installPrivateKey(String privateKey) { return CloudSigmaTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * @see TemplateOptions#installPrivateKey(String) */ @Override public SoftLayerTemplateOptions installPrivateKey(String privateKey) { return SoftLayerTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * {@inheritDoc} */ @Override public NovaTemplateOptions installPrivateKey(String privateKey) { return NovaTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * {@inheritDoc} */ @Override public DockerTemplateOptions installPrivateKey(String privateKey) { return DockerTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * @see TemplateOptions#installPrivateKey(String) */ @Override public GoGridTemplateOptions installPrivateKey(String privateKey) { return GoGridTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * {@inheritDoc} */ @Override public CloudSigmaTemplateOptions installPrivateKey(String privateKey) { return CloudSigmaTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * {@inheritDoc} */ @Override public GoogleComputeEngineTemplateOptions installPrivateKey(String privateKey) { return GoogleComputeEngineTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * {@inheritDoc} */ @Override public SDCTemplateOptions installPrivateKey(String privateKey) { return SDCTemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * {@inheritDoc} */ @Override public EC2TemplateOptions installPrivateKey(String privateKey) { return EC2TemplateOptions.class.cast(super.installPrivateKey(privateKey)); }
/** * please use alternative that uses the {@link org.jclouds.io.Payload} * object * * @see org.jclouds.io.Payloads * @see #installPrivateKey(Payload) */ public static TemplateOptions installPrivateKey(String rsaKey) { TemplateOptions options = new TemplateOptions(); return options.installPrivateKey(rsaKey); }
/** * please use alternative that uses the {@link org.jclouds.io.Payload} * object * * @see org.jclouds.io.Payloads * @see #installPrivateKey(Payload) */ public static TemplateOptions installPrivateKey(String rsaKey) { TemplateOptions options = new TemplateOptions(); return options.installPrivateKey(rsaKey); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testinstallPrivateKeyBadFormat() { TemplateOptions options = new TemplateOptions(); options.installPrivateKey("whompy"); }
@Test public void testinstallPrivateKey() throws IOException { TemplateOptions options = new TemplateOptions(); options.installPrivateKey("-----BEGIN RSA PRIVATE KEY-----"); assertEquals(options.toString(), "{privateKeyPresent=true}"); assertEquals(options.getPrivateKey(), "-----BEGIN RSA PRIVATE KEY-----"); }