public class PkinitUtil extends Object
| Constructor and Description |
|---|
PkinitUtil() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getSignedAuthPack(PrivateKey privateKey,
X509Certificate certificate,
org.apache.kerby.kerberos.kerb.type.pa.pkinit.AuthPack authPack)
Uses a private key to sign data in a CMS SignedData structure and returns
the encoded CMS SignedData as bytes.
|
static byte[] |
getSignedKdcDhKeyInfo(PrivateKey privateKey,
X509Certificate certificate,
org.apache.kerby.kerberos.kerb.type.pa.pkinit.KdcDhKeyInfo kdcDhKeyInfo)
Uses a private key to sign data in a CMS SignedData structure and returns
the encoded CMS SignedData as bytes.
|
static byte[] |
getSignedReplyKeyPack(PrivateKey privateKey,
X509Certificate certificate,
org.apache.kerby.kerberos.kerb.type.pa.pkinit.ReplyKeyPack replyKeyPack)
Uses a private key to sign data in a CMS SignedData structure and returns
the encoded CMS SignedData as bytes.
|
public static byte[] getSignedAuthPack(PrivateKey privateKey, X509Certificate certificate, org.apache.kerby.kerberos.kerb.type.pa.pkinit.AuthPack authPack) throws org.apache.kerby.kerberos.kerb.KrbException
privateKey - The private keycertificate - The certificateauthPack - The auth packorg.apache.kerby.kerberos.kerb.KrbException - epublic static byte[] getSignedKdcDhKeyInfo(PrivateKey privateKey, X509Certificate certificate, org.apache.kerby.kerberos.kerb.type.pa.pkinit.KdcDhKeyInfo kdcDhKeyInfo) throws org.apache.kerby.kerberos.kerb.KrbException
privateKey - The private Keycertificate - The certificatekdcDhKeyInfo - The kdc dh key infoorg.apache.kerby.kerberos.kerb.KrbException - epublic static byte[] getSignedReplyKeyPack(PrivateKey privateKey, X509Certificate certificate, org.apache.kerby.kerberos.kerb.type.pa.pkinit.ReplyKeyPack replyKeyPack) throws org.apache.kerby.kerberos.kerb.KrbException
privateKey - The private keycertificate - The certificatereplyKeyPack - The reply key packorg.apache.kerby.kerberos.kerb.KrbException - eCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.