public class Realm extends Object implements oracle.fmwplatform.envspec.common.ParentContainerWithVariables, oracle.fmwplatform.envspec.common.ContainerAware<SecurityConfiguration>, oracle.fmwplatform.envspec.common.Tunable<SecurityConfiguration>
Modifier and Type | Field and Description |
---|---|
static String |
RESERVED_TOKEN_REALM |
Constructor and Description |
---|
Realm() |
Modifier and Type | Method and Description |
---|---|
boolean |
addAllAuthenticationProviders(Collection<AuthenticationProvider> authenticationProviders)
Add all authenticationProviders to the realm.
|
boolean |
addAuthenticationProvider(AuthenticationProvider authenticationProvider)
Adds the authenticationProvider provided to the list of authenticationProviders in this realm.
|
boolean |
addSetting(String alias,
String value)
Convenience method to add a setting with the given alias and value, to the tuning parameters for this
ServerBinding.
|
oracle.fmwplatform.envspec.lookup.data.AliasCategory |
getAliasCategory() |
AuthenticationProvider |
getAuthenticationProviderByName(String authenticationProviderName)
Returns the authenticationProvider by name from list of authenticationProviders in this realm.
|
List<AuthenticationProvider> |
getAuthenticationProviders()
Returns the list of authenticationProviders in this realm.
|
Boolean |
getCombinedRoleMappingEnabled()
Get the combinedRoleMappingEnabled value.
|
Map<String,String> |
getEffectiveVariables()
Provides the effective list of variables that apply to the tuning parameters.
|
Boolean |
getEnableWebLogicPrincipalValidatorCache()
Get the enableWebLogicPrincipalValidatorCache value.
|
String |
getMaxWebLogicPrincipalsInCache()
Returns the maxWebLogicPrincipalsInCache of this Realm.
|
String |
getName()
Returns the name of this Realm.
|
SecurityConfiguration |
getParent()
Returns the object that contains this entity
|
Map<String,String> |
getReservedKeywords()
Returns a map containing any reserved keywords and values for variable substitution for this entity
|
String |
getRetireTimeoutSeconds()
Returns the retireTimeoutSeconds of this Realm.
|
String |
getSecurityDDModel()
Returns the securityDDModel of this Realm.
|
TuningParameters |
getTuningParameters()
Returns the TuningParameters.
|
Boolean |
getValidateDDSecurityData()
Get the validateDDSecurityData value.
|
String |
getVariableValue(String key)
Returns the variable value assigned to the specified key.
|
boolean |
removeAuthenticationProvider(AuthenticationProvider authenticationProvider)
Remove the authenticationProvider in list of authenticationProviders from this realm.
|
Realm |
removeAuthenticationProviders()
Removes the list of authenticationProviders in this realm.
|
Realm |
setCombinedRoleMappingEnabled(Boolean combinedRoleMappingEnabled)
Set the combinedRoleMappingEnabled value.
|
Realm |
setEnableWebLogicPrincipalValidatorCache(Boolean enableWebLogicPrincipalValidatorCache)
Set the enableWebLogicPrincipalValidatorCache value.
|
Realm |
setMaxWebLogicPrincipalsInCache(String maxWebLogicPrincipalsInCache)
Sets the maxWebLogicPrincipalsInCache of the Realm.
|
Realm |
setName(String name)
Sets the name of the Realm.
|
Realm |
setParent(SecurityConfiguration parentContainer)
Sets the container object that contains this.
|
Realm |
setRetireTimeoutSeconds(String retireTimeoutSeconds)
Sets the retireTimeoutSeconds of the Realm.
|
Realm |
setSecurityDDModel(String securityDDModel)
Sets the securityDDModel of the Realm.
|
Realm |
setTuningParameters(TuningParameters tuningParameters)
Sets the TuningParameters for this SecurityConfiguration or null if no TuningParameters.
|
Realm |
setValidateDDSecurityData(Boolean validateDDSecurityData)
Set the validateDDSecurityData value.
|
String |
substitute(String text)
Replaces substitution keys in the specified text with their corresponding values.
|
String |
toCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toJsonCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toJsonString()
Returns a string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in XML format.
|
String |
toXmlCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toXmlString()
Returns a string representation of the object in XML format.
|
public static final String RESERVED_TOKEN_REALM
public SecurityConfiguration getParent()
oracle.fmwplatform.envspec.common.ContainerAware
getParent
in interface oracle.fmwplatform.envspec.common.ContainerAware<SecurityConfiguration>
public Realm setParent(SecurityConfiguration parentContainer)
oracle.fmwplatform.envspec.common.ContainerAware
setParent
in interface oracle.fmwplatform.envspec.common.ContainerAware<SecurityConfiguration>
parentContainer
- the parent containerpublic Map<String,String> getReservedKeywords()
oracle.fmwplatform.envspec.common.ReservedKeywordProvider
getReservedKeywords
in interface oracle.fmwplatform.envspec.common.ReservedKeywordProvider
public String getVariableValue(String key)
getVariableValue
in interface oracle.fmwplatform.envspec.common.Substitutable
key
- the key of the variable to be checkedpublic String substitute(String text)
substitute
in interface oracle.fmwplatform.envspec.common.Substitutable
text
- the original textpublic Map<String,String> getEffectiveVariables() throws FMWEnvSpecException
getEffectiveVariables
in interface oracle.fmwplatform.envspec.common.ParentContainerWithVariables
FMWEnvSpecException
- When any tuning parameters references cannot be readpublic String getName()
getName
in interface oracle.fmwplatform.envspec.common.Tunable<SecurityConfiguration>
public Realm setName(String name)
name
- the name of the Realmpublic String getMaxWebLogicPrincipalsInCache()
public Realm setMaxWebLogicPrincipalsInCache(String maxWebLogicPrincipalsInCache)
maxWebLogicPrincipalsInCache
- the maxWebLogicPrincipalsInCache of the Realmpublic String getRetireTimeoutSeconds()
public Realm setRetireTimeoutSeconds(String retireTimeoutSeconds)
retireTimeoutSeconds
- the retireTimeoutSeconds of the Realmpublic String getSecurityDDModel()
public Realm setSecurityDDModel(String securityDDModel)
securityDDModel
- the securityDDModel of the Realmpublic Boolean getCombinedRoleMappingEnabled()
public Realm setCombinedRoleMappingEnabled(Boolean combinedRoleMappingEnabled)
combinedRoleMappingEnabled
- the new combinedRoleMappingEnabled valuepublic Boolean getEnableWebLogicPrincipalValidatorCache()
public Realm setEnableWebLogicPrincipalValidatorCache(Boolean enableWebLogicPrincipalValidatorCache)
enableWebLogicPrincipalValidatorCache
- the new enableWebLogicPrincipalValidatorCache valuepublic Boolean getValidateDDSecurityData()
public Realm setValidateDDSecurityData(Boolean validateDDSecurityData)
validateDDSecurityData
- the new validateDDSecurityData valuepublic boolean addAuthenticationProvider(AuthenticationProvider authenticationProvider)
authenticationProvider
- the authenticationProvider to add to the list of
authenticationProviders in this realmCollection.add(E)
)public boolean addAllAuthenticationProviders(Collection<AuthenticationProvider> authenticationProviders)
authenticationProviders
- the list of authenticationProviders to add to this realm.Collection.add(E)
)public List<AuthenticationProvider> getAuthenticationProviders()
public AuthenticationProvider getAuthenticationProviderByName(String authenticationProviderName)
authenticationProviderName
- the authenticationProvider name from list of
authenticationProviders in this realm.public boolean removeAuthenticationProvider(AuthenticationProvider authenticationProvider)
authenticationProvider
- the realm from list of realms in this domainpublic Realm removeAuthenticationProviders()
public TuningParameters getTuningParameters()
getTuningParameters
in interface oracle.fmwplatform.envspec.common.Tunable<SecurityConfiguration>
public Realm setTuningParameters(TuningParameters tuningParameters)
setTuningParameters
in interface oracle.fmwplatform.envspec.common.Tunable<SecurityConfiguration>
tuningParameters
- the TuningParameters for this SecurityConfiguration or null if no TuningParameterspublic oracle.fmwplatform.envspec.lookup.data.AliasCategory getAliasCategory()
getAliasCategory
in interface oracle.fmwplatform.envspec.common.Tunable<SecurityConfiguration>
public boolean addSetting(String alias, String value)
addSetting
in interface oracle.fmwplatform.envspec.common.Tunable<SecurityConfiguration>
alias
- the alias of a Settingvalue
- the value of a Settingpublic String toXmlCompactString()
public String toXmlString()
public String toJsonCompactString()
public String toJsonString()
public String toCompactString()