PUB
- the type of public key.PRIV
- the type of private key.public abstract class InstanceIdentityProvider<PUB extends PublicKey,PRIV extends PrivateKey> extends Object implements ExtensionPoint
Modifier and Type | Class and Description |
---|---|
static class |
InstanceIdentityProvider.KeyTypes<PUB extends PublicKey,PRIV extends PrivateKey>
Holds information about the paired keytypes that can be used to form the various identity keys.
|
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
static InstanceIdentityProvider.KeyTypes<DSAPublicKey,DSAPrivateKey> |
DSA
DSA keys.
|
static InstanceIdentityProvider.KeyTypes<ECPublicKey,ECPrivateKey> |
EC
EC keys
|
static InstanceIdentityProvider.KeyTypes<RSAPublicKey,RSAPrivateKey> |
RSA
RSA keys.
|
Constructor and Description |
---|
InstanceIdentityProvider() |
Modifier and Type | Method and Description |
---|---|
protected abstract X509Certificate |
getCertificate()
Gets the self-signed
X509Certificate that is associated with this identity. |
protected abstract KeyPair |
getKeyPair()
Gets the
KeyPair that comprises the instance identity. |
protected PRIV |
getPrivateKey()
Shortcut to
KeyPair.getPrivate() . |
protected PUB |
getPublicKey()
Shortcut to
KeyPair.getPublic() . |
public static final InstanceIdentityProvider.KeyTypes<RSAPublicKey,RSAPrivateKey> RSA
public static final InstanceIdentityProvider.KeyTypes<DSAPublicKey,DSAPrivateKey> DSA
public static final InstanceIdentityProvider.KeyTypes<ECPublicKey,ECPrivateKey> EC
@CheckForNull protected abstract KeyPair getKeyPair()
KeyPair
that comprises the instance identity.KeyPair
that comprises the instance identity. null
could 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.@CheckForNull protected PUB getPublicKey()
KeyPair.getPublic()
.null
if getKeyPair()
is null
.@CheckForNull protected PRIV getPrivateKey()
KeyPair.getPrivate()
.null
if getKeyPair()
is null
.@CheckForNull protected abstract X509Certificate getCertificate()
X509Certificate
that is associated with this identity. The certificate
will must be currently valid. Repeated calls to this method may result in new certificates being generated.null
if getKeyPair()
is null
.Copyright © 2004–2021. All rights reserved.