public class KeyUtil extends Object
KeyUtil
provides methods to obtain
the hosting entity's signing key and decryption key, and
to obtain a partner entity's signature verification key
and encryption related informationModifier and Type | Field and Description |
---|---|
protected static Hashtable |
encHash |
protected static Hashtable |
sigHash |
Modifier and Type | Method and Description |
---|---|
static X509Certificate |
getCert(FederationElement fed)
Returns certificate stored in
FederationElement . |
static PrivateKey |
getDecryptionKey(BaseConfigType baseConfig)
Returns the host entity's decryption key.
|
static KeyProvider |
getKeyProviderInstance()
Returns the instance of
KeyProvider . |
static String |
getSigningCertAlias(BaseConfigType baseConfig)
Returns the host entity's signing certificate alias.
|
static X509Certificate |
getVerificationCert(FederationElement fed,
String entityID,
boolean isIDP)
Returns the partner entity's signature verification certificate.
|
public static KeyProvider getKeyProviderInstance()
KeyProvider
.KeyProvider
public static String getSigningCertAlias(BaseConfigType baseConfig)
baseConfig
- BaseConfigType
for the host entityString
for host entity's signing
certificate aliaspublic static PrivateKey getDecryptionKey(BaseConfigType baseConfig)
baseConfig
- BaseConfigType
for the host entityPrivateKey
for decrypting a message received
by the host entitypublic static X509Certificate getVerificationCert(FederationElement fed, String entityID, boolean isIDP)
fed
- FederationElement
for the partner entityentityID
- partner entity's IDisIDP
- whether partner entity's role is IDP or SPX509Certificate
for verifying the partner
entity's signaturepublic static X509Certificate getCert(FederationElement fed)
FederationElement
.fed
- FederationElement
which contains certificate infoFederationElement
; or
null
if no certificate is included.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.