Modifier and Type | Method and Description |
---|---|
KeyInfo |
build()
Builds and returns an instance according to the configuration of this
builder.
|
KeyInfo.Builder |
certificates(List<X509Certificate> certificates)
Specifies a list of certificates associated with this key.
|
KeyInfo.Builder |
certificateUrl(URI url)
Specifies a URL from which certificates associated with this key may
be retrieved.
|
KeyInfo.Builder |
id(String id)
Specifies an identifier for this key.
|
KeyInfo.Builder |
key(Key key)
Specifies the key itself.
|
public KeyInfo.Builder id(String id)
id
- identifierpublic KeyInfo.Builder key(Key key)
key
- the subject keypublic KeyInfo.Builder certificates(List<X509Certificate> certificates)
certificates
- certificates to add to the resulting key infopublic KeyInfo.Builder certificateUrl(URI url)
url
- URLpublic KeyInfo build()
Copyright © 2019. All rights reserved.