public final class IDFFMetaSecurityUtils extends Object
IDFFMetaSecurityUtils
class provides metadata security
related utility functions.Modifier and Type | Field and Description |
---|---|
static String |
NS_META |
static String |
NS_XMLENC |
static String |
NS_XMLSIG |
Modifier and Type | Method and Description |
---|---|
static String |
buildX509Certificate(String certAlias)
Returns BASE64 encoded X509 Certificate string corresponding to the
certificate alias.
|
static void |
updateProviderKeyInfo(String realm,
String entityID,
String certAlias,
boolean isSigning,
boolean isIDP,
String encAlgo,
int keySize)
Updates signing or encryption key info for SP or IDP.
|
public static final String NS_XMLSIG
public static final String NS_XMLENC
public static final String NS_META
public static String buildX509Certificate(String certAlias) throws IDFFMetaException
certAlias
- Alias of the Certificate to be retrieved.IDFFMetaException
- if unable to retrieve the certificate from the
internal key store.public static void updateProviderKeyInfo(String realm, String entityID, String certAlias, boolean isSigning, boolean isIDP, String encAlgo, int keySize) throws IDFFMetaException
realm
- Realm the entity resides.entityID
- ID of the entity to be updated.certAlias
- Alias of the certificate to be set to the entity. If
null, will remove existing key information from the SP or IDP.isSigning
- true if this is signing certificate alias, false if
this is encryption certification alias.isIDP
- true if this is for IDP signing/encryption alias, false
if this is for SP signing/encryption aliasencAlgo
- Encryption algorithm URI, this is applicable for
encryption cert only.keySize
- Encryption key size, this is applicable for
encryption cert only.IDFFMetaException
- if failed to update the certificate alias for
the entity.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.