public class MetaSecuritySource extends SecuritySourceBase implements com.exalead.util.Checkable, java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
MetaSecuritySource.Type |
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
__type_values |
java.util.List<AuthenticationSource> |
authenticationSource |
java.util.List<AuthorizationSource> |
authorizationSource |
static java.lang.String |
DEFAULT_TYPE |
java.lang.String |
forcedTokens |
java.lang.String |
type |
DEFAULT_DEPLOY, deploy, name
Constructor and Description |
---|
MetaSecuritySource() |
MetaSecuritySource(MetaSecuritySource o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this MetaSecuritySource.
|
static MetaSecuritySource |
fromString(java.lang.String s)
String representation of this MetaSecuritySource.
|
java.util.List<AuthenticationSource> |
getAuthenticationSource()
List of sources on which authentication will be performed
|
java.util.Map<java.lang.String,AuthenticationSource> |
getAuthenticationSourceAsMap()
Get the map of AuthenticationSource, indexed by name
|
AuthenticationSource |
getAuthenticationSourceByName(java.lang.String _lookup)
Get the AuthenticationSource for which the name matches _lookup
|
java.util.List<AuthorizationSource> |
getAuthorizationSource()
List of sources for which token will be retrieved if an authentication has succeeded.
|
java.util.Map<java.lang.String,AuthorizationSource> |
getAuthorizationSourceAsMap()
Get the map of AuthorizationSource, indexed by name
|
AuthorizationSource |
getAuthorizationSourceByName(java.lang.String _lookup)
Get the AuthorizationSource for which the name matches _lookup
|
java.lang.String |
getForcedTokens()
An optional comma-separated list of tokens which will be appended to all authenticated users.
|
java.lang.String |
getType()
Type of action when an authentication succeeds
Value can be null or one of
First
Merge
No Authentication
|
MetaSecuritySource.Type |
getTypeAsEnum()
Type of action when an authentication succeeds
Value can be null or one of
First
Merge
No Authentication
|
static boolean |
isA(java.lang.String str,
MetaSecuritySource.Type item) |
static boolean |
isOneOf(java.lang.String str,
MetaSecuritySource.Type... items) |
MetaSecuritySource |
makeCopy()
Creates and returns a deep copy of this MetaSecuritySource.
|
static MetaSecuritySource |
readFrom(java.io.InputStream is)
Read this MetaSecuritySource from an XML fragment.
|
boolean |
removeAuthenticationSourceByName(java.lang.String _lookup)
Removes the AuthenticationSource for which the name matches _lookup
|
boolean |
removeAuthorizationSourceByName(java.lang.String _lookup)
Removes the AuthorizationSource for which the name matches _lookup
|
void |
setForcedTokens(java.lang.String forcedTokens)
An optional comma-separated list of tokens which will be appended to all authenticated users.
|
void |
setType(MetaSecuritySource.Type item)
Type of action when an authentication succeeds
Value can be null or one of
First
Merge
No Authentication
|
void |
setType(java.lang.String type)
Type of action when an authentication succeeds
Value can be null or one of
First
Merge
No Authentication
|
java.lang.String |
toString()
String representation of this MetaSecuritySource.
|
MetaSecuritySource |
withAuthenticationSource(AuthenticationSource... __values)
List of sources on which authentication will be performed
|
MetaSecuritySource |
withAuthenticationSource(java.util.Collection<AuthenticationSource> __values) |
MetaSecuritySource |
withAuthorizationSource(AuthorizationSource... __values)
List of sources for which token will be retrieved if an authentication has succeeded.
|
MetaSecuritySource |
withAuthorizationSource(java.util.Collection<AuthorizationSource> __values) |
MetaSecuritySource |
withDeploy(boolean deploy) |
MetaSecuritySource |
withDeploy(java.lang.Boolean deploy) |
MetaSecuritySource |
withForcedTokens(java.lang.String forcedTokens) |
MetaSecuritySource |
withName(java.lang.String name) |
MetaSecuritySource |
withType(java.lang.String type) |
void |
writeTo(java.io.OutputStream os)
Write this MetaSecuritySource as an XML fragment
|
getName, isDeploy, setDeploy, setName
public java.lang.String type
public static final java.lang.String DEFAULT_TYPE
public static final java.lang.String[] __type_values
public java.util.List<AuthenticationSource> authenticationSource
public java.util.List<AuthorizationSource> authorizationSource
public java.lang.String forcedTokens
public MetaSecuritySource()
public MetaSecuritySource(MetaSecuritySource o)
public static boolean isA(java.lang.String str, MetaSecuritySource.Type item)
public static boolean isOneOf(java.lang.String str, MetaSecuritySource.Type... items)
public void setType(MetaSecuritySource.Type item)
public MetaSecuritySource.Type getTypeAsEnum()
public MetaSecuritySource withName(java.lang.String name)
withName
in class SecuritySourceBase
public MetaSecuritySource withDeploy(boolean deploy)
withDeploy
in class SecuritySourceBase
public MetaSecuritySource withDeploy(java.lang.Boolean deploy)
withDeploy
in class SecuritySourceBase
public void setType(java.lang.String type)
public java.lang.String getType()
public MetaSecuritySource withType(java.lang.String type)
public java.util.List<AuthenticationSource> getAuthenticationSource()
public AuthenticationSource getAuthenticationSourceByName(java.lang.String _lookup)
public java.util.Map<java.lang.String,AuthenticationSource> getAuthenticationSourceAsMap()
public boolean removeAuthenticationSourceByName(java.lang.String _lookup)
public MetaSecuritySource withAuthenticationSource(AuthenticationSource... __values)
public MetaSecuritySource withAuthenticationSource(java.util.Collection<AuthenticationSource> __values)
public java.util.List<AuthorizationSource> getAuthorizationSource()
public AuthorizationSource getAuthorizationSourceByName(java.lang.String _lookup)
public java.util.Map<java.lang.String,AuthorizationSource> getAuthorizationSourceAsMap()
public boolean removeAuthorizationSourceByName(java.lang.String _lookup)
public MetaSecuritySource withAuthorizationSource(AuthorizationSource... __values)
public MetaSecuritySource withAuthorizationSource(java.util.Collection<AuthorizationSource> __values)
public void setForcedTokens(java.lang.String forcedTokens)
public java.lang.String getForcedTokens()
public MetaSecuritySource withForcedTokens(java.lang.String forcedTokens)
public MetaSecuritySource makeCopy()
makeCopy
in class SecuritySourceBase
public static MetaSecuritySource readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class SecuritySourceBase
javax.xml.bind.JAXBException
java.io.IOException
public static MetaSecuritySource fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class SecuritySourceBase
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class SecuritySourceBase
com.exalead.util.TypedException
Copyright © 2021 Dassault Systèmes, All Rights Reserved.