Top Description Fields Constructors Methods
org.eclipse.jgit.transport

public Class SignedPushConfig

extends Object
Class Inheritance
Imports
org.eclipse.jgit.lib.Config, .Config.SectionParser

Configuration for server-side signed push verification.
Since
4.1

Field Summary

Modifier and TypeField and Description
private String
private int
public static final Config.SectionParser<SignedPushConfig>
private NonceGenerator

Constructor Summary

AccessConstructor and Description
public
SignedPushConfig()

Create a new config with default values disabling push verification.

pack-priv

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the configured seed.
getCertNonceSeed
()

Get the configured seed.

public int

Returns:

the configured nonce slop limit.
getCertNonceSlopLimit
()

Get the configured nonce slop limit.

public NonceGenerator

Returns:

the configured nonce generator.
getNonceGenerator
()

Get the org.eclipse.jgit.transport.NonceGenerator used for signed pushes.

public void
setCertNonceSeed(String
new seed value.
seed
)

Set the seed used by the nonce verifier.

public void
setCertNonceSlopLimit(int
new limit in seconds.
limit
)

Set the nonce slop limit.

public void
setNonceGenerator(NonceGenerator
new nonce generator.
generator
)

Set the org.eclipse.jgit.transport.NonceGenerator used for signed pushes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certNonceSeedback to summary
private String certNonceSeed
certNonceSlopLimitback to summary
private int certNonceSlopLimit
KEYback to summary
public static final Config.SectionParser<SignedPushConfig> KEY

Key for Config#get(SectionParser).

nonceGeneratorback to summary
private NonceGenerator nonceGenerator

Constructor Detail

SignedPushConfigback to summary
public SignedPushConfig()

Create a new config with default values disabling push verification.

SignedPushConfigback to summary
pack-priv SignedPushConfig(Config cfg)

Method Detail

getCertNonceSeedback to summary
public String getCertNonceSeed()

Get the configured seed.

Returns:String

the configured seed.

getCertNonceSlopLimitback to summary
public int getCertNonceSlopLimit()

Get the configured nonce slop limit.

Returns:int

the configured nonce slop limit.

getNonceGeneratorback to summary
public NonceGenerator getNonceGenerator()

Get the org.eclipse.jgit.transport.NonceGenerator used for signed pushes.

If setNonceGenerator(NonceGenerator) was used to set a non-null implementation, that will be returned. If no custom implementation was set but setCertNonceSeed(String) was called, returns a newly-created org.eclipse.jgit.transport.HMACSHA1NonceGenerator.

Returns:NonceGenerator

the configured nonce generator.

setCertNonceSeedback to summary
public void setCertNonceSeed(String seed)

Set the seed used by the nonce verifier.

Setting this to a non-null value enables push certificate verification using the default org.eclipse.jgit.transport.HMACSHA1NonceGenerator implementation, if a different implementation was not set using setNonceGenerator(NonceGenerator).

Parameters
seed:String

new seed value.

setCertNonceSlopLimitback to summary
public void setCertNonceSlopLimit(int limit)

Set the nonce slop limit.

Old but valid nonces within this limit will be accepted.

Parameters
limit:int

new limit in seconds.

setNonceGeneratorback to summary
public void setNonceGenerator(NonceGenerator generator)

Set the org.eclipse.jgit.transport.NonceGenerator used for signed pushes.

Setting this to a non-null value enables push certificate verification. If this method is called, this implementation will be used instead of the default org.eclipse.jgit.transport.HMACSHA1NonceGenerator even if setCertNonceSeed(String) was called.

Parameters
generator:NonceGenerator

new nonce generator.