Package org.soulwing.s2ks
Class KeyPairInfo
- java.lang.Object
-
- org.soulwing.s2ks.KeyPairInfo
-
public class KeyPairInfo extends java.lang.ObjectA private key and corresponding certificates.- Author:
- Carl Harris
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyPairInfo.BuilderA builder that constructs aKeyPairInfoinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeyPairInfo.Builderbuilder()Creates a builder that constructs a new instance.java.util.List<java.security.cert.X509Certificate>getCertificates()Gets the list of certificates associated with the privateKey.java.lang.StringgetId()Gets the ID specified for this privateKey.java.security.PrivateKeygetPrivateKey()Gets the subject privateKey.
-
-
-
Method Detail
-
builder
public static KeyPairInfo.Builder builder()
Creates a builder that constructs a new instance.- Returns:
- builder
-
getId
public java.lang.String getId()
Gets the ID specified for this privateKey.- Returns:
- ID or
nullif none was specified
-
getPrivateKey
public java.security.PrivateKey getPrivateKey()
Gets the subject privateKey.- Returns:
- privateKey
-
getCertificates
public java.util.List<java.security.cert.X509Certificate> getCertificates()
Gets the list of certificates associated with the privateKey.- Returns:
- certificate list (possibly empty, but never
null)
-
-