Package jenkins.model.identity
Class InstanceIdentityProvider.KeyTypes<PUB extends PublicKey,PRIV extends PrivateKey>
java.lang.Object
jenkins.model.identity.InstanceIdentityProvider.KeyTypes<PUB,PRIV>
- Type Parameters:
PUB- the type of public key.PRIV- the type of private key.
- Enclosing class:
InstanceIdentityProvider<PUB extends PublicKey,PRIV extends PrivateKey>
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public static final class InstanceIdentityProvider.KeyTypes<PUB extends PublicKey,PRIV extends PrivateKey>
extends Object
Holds information about the paired keytypes that can be used to form the various identity keys.
-
Method Summary
Modifier and TypeMethodDescriptionGets the self-signedX509Certificatethat is associated with this identity.Gets theKeyPairthat comprises the instance identity.Shortcut toKeyPair.getPrivate().Gets the interface for the private key.Shortcut toKeyPair.getPublic().Gets the interface for the public key.
-
Method Details
-
getPublicKeyClass
Gets the interface for the public key.- Returns:
- the interface for the public key.
-
getPrivateKeyClass
Gets the interface for the private key.- Returns:
- the interface for the private key.
-
getKeyPair
Gets theKeyPairthat comprises the instance identity.- Returns:
- the
KeyPairthat comprises the instance identity.nullcould technically be returned in the event that a keypair could not be generated, for example if the specific key type of this provider is not permitted at the required length by the JCA policy.
-
getPublicKey
Shortcut toKeyPair.getPublic().- Returns:
- the public key.
nullifgetKeyPair()isnull.
-
getPrivateKey
Shortcut toKeyPair.getPrivate().- Returns:
- the private key.
nullifgetKeyPair()isnull.
-
getCertificate
Gets the self-signedX509Certificatethat is associated with this identity. The certificate will must be currently valid. Repeated calls to this method may result in new certificates being generated.- Returns:
- the certificate.
nullifgetKeyPair()isnull.
-