Class InstanceIdentity
- java.lang.Object
-
- org.jenkinsci.main.modules.instance_identity.InstanceIdentity
-
public class InstanceIdentity extends Object
Captures the RSA key pair that identifies/authenticates this instance. Useful wherever we need to authenticate Jenkins against something external to it (sshd-plugin
for example).- Author:
- Kohsuke Kawaguchi
-
-
Constructor Summary
Constructors Constructor Description InstanceIdentity()
InstanceIdentity(File keyFile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceIdentity
get()
String
getEncodedPublicKey()
RSAPrivateKey
getPrivate()
RSAPublicKey
getPublic()
-
-
-
Constructor Detail
-
InstanceIdentity
public InstanceIdentity() throws IOException
- Throws:
IOException
-
InstanceIdentity
public InstanceIdentity(File keyFile) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getPublic
public RSAPublicKey getPublic()
-
getPrivate
public RSAPrivateKey getPrivate()
-
getEncodedPublicKey
public String getEncodedPublicKey()
- Returns:
- the encoded RSA public key.
- Since:
- TODO
-
get
public static InstanceIdentity get()
-
-