public class CoreConfigUtil extends Object
Constructor and Description |
---|
CoreConfigUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
decryptionNeeded(List<? extends KeyValueType> keyValueList)
Given a key value list, check if decrypt of any properties is needed.
|
static String |
getIdentityURL(IDPSSODescriptorType idp,
String bindingURI)
Given a binding uri, get the IDP identity url
|
static IDPSSODescriptorType |
getIDPDescriptor(EntitiesDescriptorType entitiesDescriptor)
Get the first metadata descriptor for an IDP
|
static IDPSSODescriptorType |
getIDPDescriptor(EntityDescriptorType entityDescriptor)
Get the IDP metadata descriptor from an entity descriptor
|
static IDPType |
getIDPType(IDPSSODescriptorType idpSSODescriptor)
Get the IDP Type
|
static List<AuthPropertyType> |
getKeyProviderProperties(KeyProviderType keyProviderType)
Given a
KeyProviderType , return the list of auth properties that have been decrypted for any masked
password |
static String |
getLogoutResponseLocation(IDPSSODescriptorType idp,
String bindingURI)
Given a binding uri, get the IDP logout response url (used for global logouts)
|
static String |
getLogoutURL(IDPSSODescriptorType idp,
String bindingURI)
Given a binding uri, get the IDP identity url
|
static List<EntityDescriptorType> |
getMetadataConfiguration(ProviderType providerType,
ServletContext servletContext)
Read metadata from ProviderType
|
static List<KeyValueType> |
getProperties(ClaimsProcessorType claimsProcessorType)
Given a
ClaimsProcessorType , return the list of properties that have been decrypted for any masked
property value |
static List<KeyValueType> |
getProperties(TokenProviderType tokenProviderType)
Given a
TokenProviderType , return the list of properties that have been decrypted for any masked
property
value |
static String |
getServiceURL(SPSSODescriptorType sp,
String bindingURI)
Get the service url for the SP
|
static SPType |
getSPConfiguration(EntitiesDescriptorType entitiesDescriptor,
String bindingURI)
Given a metadata
EntityDescriptorType , construct the Service provider configuration |
static ProviderType |
getSPConfiguration(EntityDescriptorType entityDescriptor,
String bindingURI)
Given a metadata
EntityDescriptorType , construct the Service provider configuration |
static SPSSODescriptorType |
getSPDescriptor(EntityDescriptorType entityDescriptor)
Get the SP Descriptor from an entity descriptor
|
static TrustKeyManager |
getTrustKeyManager(KeyProviderType keyProvider)
Once the
KeyProviderType is derived, get the TrustKeyManager |
static TrustKeyManager |
getTrustKeyManager(ProviderType idpOrSPConfiguration)
Given either the IDP Configuration or the SP Configuration, derive the TrustKeyManager
|
static PublicKey |
getValidatingKey(ProviderType idpSpConfiguration,
String domain)
Get the validating key
|
static PublicKey |
getValidatingKey(TrustKeyManager trustKeyManager,
String domain)
Get the validating key given the trust key manager
|
public static TrustKeyManager getTrustKeyManager(ProviderType idpOrSPConfiguration)
idpOrSPConfiguration
- public static TrustKeyManager getTrustKeyManager(KeyProviderType keyProvider)
KeyProviderType
is derived, get the TrustKeyManager
keyProvider
- public static PublicKey getValidatingKey(ProviderType idpSpConfiguration, String domain) throws ConfigurationException, ProcessingException
idpSpConfiguration
- domain
- ConfigurationException
ProcessingException
public static PublicKey getValidatingKey(TrustKeyManager trustKeyManager, String domain) throws ConfigurationException, ProcessingException
trustKeyManager
- domain
- ConfigurationException
ProcessingException
public static List<AuthPropertyType> getKeyProviderProperties(KeyProviderType keyProviderType) throws GeneralSecurityException
KeyProviderType
, return the list of auth properties that have been decrypted for any masked
passwordkeyProviderType
- GeneralSecurityException
public static List<KeyValueType> getProperties(TokenProviderType tokenProviderType) throws GeneralSecurityException
TokenProviderType
, return the list of properties that have been decrypted for any masked
property
valuetokenProviderType
- GeneralSecurityException
public static List<KeyValueType> getProperties(ClaimsProcessorType claimsProcessorType) throws GeneralSecurityException
ClaimsProcessorType
, return the list of properties that have been decrypted for any masked
property valueclaimsProcessorType
- GeneralSecurityException
public static boolean decryptionNeeded(List<? extends KeyValueType> keyValueList)
keyValueList
- public static ProviderType getSPConfiguration(EntityDescriptorType entityDescriptor, String bindingURI)
EntityDescriptorType
, construct the Service provider configurationentityDescriptor
- bindingURI
- public static SPType getSPConfiguration(EntitiesDescriptorType entitiesDescriptor, String bindingURI) throws ConfigurationException
EntityDescriptorType
, construct the Service provider configurationentityDescriptor
- bindingURI
- ConfigurationException
public static IDPSSODescriptorType getIDPDescriptor(EntitiesDescriptorType entitiesDescriptor)
entitiesDescriptor
- public static IDPSSODescriptorType getIDPDescriptor(EntityDescriptorType entityDescriptor)
entityDescriptor
- public static SPSSODescriptorType getSPDescriptor(EntityDescriptorType entityDescriptor)
entityDescriptor
- public static String getIdentityURL(IDPSSODescriptorType idp, String bindingURI)
idp
- bindingURI
- public static String getLogoutURL(IDPSSODescriptorType idp, String bindingURI)
idp
- bindingURI
- public static String getLogoutResponseLocation(IDPSSODescriptorType idp, String bindingURI)
public static String getServiceURL(SPSSODescriptorType sp, String bindingURI)
sp
- bindingURI
- public static IDPType getIDPType(IDPSSODescriptorType idpSSODescriptor)
idpSSODescriptor
- public static List<EntityDescriptorType> getMetadataConfiguration(ProviderType providerType, ServletContext servletContext)
providerType
- servletContext
- Copyright © 2021 JBoss by Red Hat. All rights reserved.