Package org.soulwing.s2ks
Class KeyPairInfo.Builder
- java.lang.Object
-
- org.soulwing.s2ks.KeyPairInfo.Builder
-
- Enclosing class:
- KeyPairInfo
public static class KeyPairInfo.Builder extends java.lang.ObjectA builder that constructs aKeyPairInfoinstance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyPairInfobuild()Builds and returns an instance according to the configuration of this builder.KeyPairInfo.Buildercertificates(java.util.List<java.security.cert.X509Certificate> certificates)Specifies a list of corresponding certificates.KeyPairInfo.Builderid(java.lang.String id)Specifies an identifier for this privateKey.KeyPairInfo.BuilderprivateKey(java.security.PrivateKey privateKey)Specifies the private key.
-
-
-
Method Detail
-
id
public KeyPairInfo.Builder id(java.lang.String id)
Specifies an identifier for this privateKey.- Parameters:
id- identifier- Returns:
- this builder
-
privateKey
public KeyPairInfo.Builder privateKey(java.security.PrivateKey privateKey)
Specifies the private key.- Parameters:
privateKey- the subject privateKey- Returns:
- this builder
-
certificates
public KeyPairInfo.Builder certificates(java.util.List<java.security.cert.X509Certificate> certificates)
Specifies a list of corresponding certificates.- Parameters:
certificates- certificates to add- Returns:
- this builder
-
build
public KeyPairInfo build()
Builds and returns an instance according to the configuration of this builder.- Returns:
- privateKey info instance
-
-