Class Definition
java.lang.Object
swiss.trustbroker.federation.xmlconfig.Definition
- All Implemented Interfaces:
Serializable,swiss.trustbroker.api.sessioncache.dto.AttributeName
public class Definition
extends Object
implements Serializable, swiss.trustbroker.api.sessioncache.dto.AttributeName
Attribute definition.
For custom attributes see AttributeInitializer.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefinition(String name) Definition(String name, String namespaceUri) Definition(String name, String namespaceUri, String singleValue) Definition(String name, String namespaceUri, String source, String altName, String oidcNames, Boolean cid, Multivalued multiValued, String mappers, ClaimsMapper oidcMapper, String provision, Boolean provisioningId, String value, String scope, Boolean required) Deprecated.use mappersDefinition(swiss.trustbroker.api.sessioncache.dto.AttributeName attributeName) -
Method Summary
Modifier and TypeMethodDescriptionstatic Definition.DefinitionBuilderbuilder()protected booleanbooleanbooleanequalsByNameOrNamespace(swiss.trustbroker.api.sessioncache.dto.AttributeName attributeName, String source) swiss.trustbroker.api.sessioncache.dto.AttributeNameKnown external attributes we just document here - used when we cannot use namespaceUri due to semantics.getCid()Indicates whether this field is considered CID (client identifying data).Comma-separated list of mappers to be used for the value.Multi value handling.getName()Short name used in auditing and for IDM attribute addressing.The long name is used in the generated SAML assertion towards the RP.String[]Deprecated.use mappersThe claim names used when emitting an attribute to an OIDC client (comma-separated - as an attribute, it cannot be a List).Provision this attribute to IDM.ID attribute for provisioning.Indicates whether this attribute is mandatory.getScope()To restrict emitting an attribute, the scope can be set as follows: saml: Use only in SAML assertions oidc: Use only in OIDC tokens (oidcName must be set) If not set, the attribute is emitted on all protocols and any requested OIDC scope.Source of the definition Compound primary key member in attribute maps using Definition(De)Serializer.getValue()Single value from constant configuration (we currently only use single valued in XML via ConstAttributes).inthashCode()booleanbooleanstatic Definitionstatic DefinitionofName(swiss.trustbroker.api.sessioncache.dto.AttributeName name) static DefinitionofNameAndSource(String name, String source) static DefinitionofNameAndSource(swiss.trustbroker.api.sessioncache.dto.AttributeName name, String source) static Definitionstatic DefinitionofNames(swiss.trustbroker.api.sessioncache.dto.AttributeName name) static DefinitionofNamesAndSource(String name, String namespaceUri, String source) static DefinitionofNamesAndSource(swiss.trustbroker.api.sessioncache.dto.AttributeName name, String source) voidsetAltName(String altName) Known external attributes we just document here - used when we cannot use namespaceUri due to semantics.voidIndicates whether this field is considered CID (client identifying data).voidsetMappers(String mappers) Comma-separated list of mappers to be used for the value.voidsetMultiValued(Multivalued multiValued) Multi value handling.voidShort name used in auditing and for IDM attribute addressing.voidsetNamespaceUri(String namespaceUri) The long name is used in the generated SAML assertion towards the RP.voidsetOidcMapper(ClaimsMapper oidcMapper) Deprecated.use mappersvoidsetOidcNames(String oidcNames) The claim names used when emitting an attribute to an OIDC client (comma-separated - as an attribute, it cannot be a List).voidsetProvision(String provision) Provision this attribute to IDM.voidsetProvisioningId(Boolean provisioningId) ID attribute for provisioning.voidsetRequired(Boolean required) Indicates whether this attribute is mandatory.voidTo restrict emitting an attribute, the scope can be set as follows: saml: Use only in SAML assertions oidc: Use only in OIDC tokens (oidcName must be set) If not set, the attribute is emitted on all protocols and any requested OIDC scope.voidSource of the definition Compound primary key member in attribute maps using Definition(De)Serializer.voidSingle value from constant configuration (we currently only use single valued in XML via ConstAttributes).toString()withSource(String newSource) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface swiss.trustbroker.api.sessioncache.dto.AttributeName
equalsByName, equalsByName, equalsByNameAndNamespace, equalsByNameOrNamespace, equalsByNameOrNamespace, equalsByNameOrNamespace, equalsByNamespace, equalsByNamespace, isEqualsBySource
-
Constructor Details
-
Definition
-
Definition
-
Definition
public Definition(swiss.trustbroker.api.sessioncache.dto.AttributeName attributeName) -
Definition
-
Definition
public Definition() -
Definition
public Definition(String name, String namespaceUri, String source, String altName, String oidcNames, Boolean cid, Multivalued multiValued, String mappers, ClaimsMapper oidcMapper, String provision, Boolean provisioningId, String value, String scope, Boolean required) Deprecated.use mappersCreates a newDefinitioninstance.- Parameters:
name- Short name used in auditing and for IDM attribute addressing. Compound primary key member in attribute maps using Definition(De)Serializer.namespaceUri- The long name is used in the generated SAML assertion towards the RP. Compound primary key member in attribute maps using Definition(De)Serializer.source- Source of the definition Compound primary key member in attribute maps using Definition(De)Serializer.altName- Known external attributes we just document here - used when we cannot use namespaceUri due to semantics.oidcNames- The claim names used when emitting an attribute to an OIDC client (comma-separated - as an attribute, it cannot be a List).cid- Indicates whether this field is considered CID (client identifying data).
Default: null - global default is usedmultiValued- Multi value handling.
Default: ORIGINALmappers- Comma-separated list of mappers to be used for the value.oidcMapper- Mapper to be used for the value.provision- Provision this attribute to IDM.
The value or list of comma-separated values indicate into what type(s) of IDM object provisioning services should provision this data.
The actual fields to provision would usually be selected based on name/namespace URI.
Generic values: true (a provisioning service selects an appropriate target), false (not provisioned - single value only).
Default: falseprovisioningId- ID attribute for provisioning.value- Single value from constant configuration (we currently only use single valued in XML via ConstAttributes).scope- To restrict emitting an attribute, the scope can be set as follows:- saml: Use only in SAML assertions
- oidc: Use only in OIDC tokens (oidcName must be set)
required- Indicates whether this attribute is mandatory.
For an AuthnResponse, this attribute must always be included- Since:
- 1.8.0, 1.9.0, 1.9.0, 1.9.0, 1.14.0
- See Also:
-
-
Method Details
-
ofName
-
ofName
-
ofNameAndSource
-
ofNameAndSource
public static Definition ofNameAndSource(swiss.trustbroker.api.sessioncache.dto.AttributeName name, String source) -
ofNames
-
ofNames
-
ofNamesAndSource
-
ofNamesAndSource
public static Definition ofNamesAndSource(swiss.trustbroker.api.sessioncache.dto.AttributeName name, String source) -
withSource
-
getOidcNameList
- Specified by:
getOidcNameListin interfaceswiss.trustbroker.api.sessioncache.dto.AttributeName
-
getClaimsMappers
-
getMultiValues
-
findAttributeName
public swiss.trustbroker.api.sessioncache.dto.AttributeName findAttributeName() -
equalsByNameOrNamespace
public boolean equalsByNameOrNamespace(swiss.trustbroker.api.sessioncache.dto.AttributeName attributeName, String source) - Specified by:
equalsByNameOrNamespacein interfaceswiss.trustbroker.api.sessioncache.dto.AttributeName
-
isProvisioningAttribute
public boolean isProvisioningAttribute() -
isProvisioningIdAttribute
public boolean isProvisioningIdAttribute() -
getOidcClaimNames
-
builder
-
toBuilder
-
getName
Short name used in auditing and for IDM attribute addressing. Compound primary key member in attribute maps using Definition(De)Serializer.- Specified by:
getNamein interfaceswiss.trustbroker.api.sessioncache.dto.AttributeName
-
getNamespaceUri
The long name is used in the generated SAML assertion towards the RP. Compound primary key member in attribute maps using Definition(De)Serializer.- Specified by:
getNamespaceUriin interfaceswiss.trustbroker.api.sessioncache.dto.AttributeName
-
getSource
Source of the definition Compound primary key member in attribute maps using Definition(De)Serializer.- Specified by:
getSourcein interfaceswiss.trustbroker.api.sessioncache.dto.AttributeName
-
getAltName
Known external attributes we just document here - used when we cannot use namespaceUri due to semantics.- Specified by:
getAltNamein interfaceswiss.trustbroker.api.sessioncache.dto.AttributeName
-
getOidcNames
The claim names used when emitting an attribute to an OIDC client (comma-separated - as an attribute, it cannot be a List).- See Also:
-
getCid
Indicates whether this field is considered CID (client identifying data).
Default: null - global default is used- Specified by:
getCidin interfaceswiss.trustbroker.api.sessioncache.dto.AttributeName- Since:
- 1.8.0
-
getMultiValued
Multi value handling.
Default: ORIGINAL -
getMappers
Comma-separated list of mappers to be used for the value.- Since:
- 1.9.0
-
getOidcMapper
Deprecated.use mappersMapper to be used for the value. -
getProvision
Provision this attribute to IDM.
The value or list of comma-separated values indicate into what type(s) of IDM object provisioning services should provision this data.
The actual fields to provision would usually be selected based on name/namespace URI.
Generic values: true (a provisioning service selects an appropriate target), false (not provisioned - single value only).
Default: false- Specified by:
getProvisionin interfaceswiss.trustbroker.api.sessioncache.dto.AttributeName- Since:
- 1.9.0
- See Also:
-
getProvisioningId
ID attribute for provisioning.- Since:
- 1.9.0
- See Also:
-
getValue
Single value from constant configuration (we currently only use single valued in XML via ConstAttributes). -
getScope
To restrict emitting an attribute, the scope can be set as follows:- saml: Use only in SAML assertions
- oidc: Use only in OIDC tokens (oidcName must be set)
-
getRequired
Indicates whether this attribute is mandatory.
For an AuthnResponse, this attribute must always be included- Since:
- 1.14.0
-
setName
Short name used in auditing and for IDM attribute addressing. Compound primary key member in attribute maps using Definition(De)Serializer. -
setNamespaceUri
The long name is used in the generated SAML assertion towards the RP. Compound primary key member in attribute maps using Definition(De)Serializer. -
setSource
Source of the definition Compound primary key member in attribute maps using Definition(De)Serializer. -
setAltName
Known external attributes we just document here - used when we cannot use namespaceUri due to semantics. -
setOidcNames
The claim names used when emitting an attribute to an OIDC client (comma-separated - as an attribute, it cannot be a List).- See Also:
-
setCid
Indicates whether this field is considered CID (client identifying data).
Default: null - global default is used- Since:
- 1.8.0
-
setMultiValued
Multi value handling.
Default: ORIGINAL -
setMappers
Comma-separated list of mappers to be used for the value.- Since:
- 1.9.0
-
setOidcMapper
Deprecated.use mappersMapper to be used for the value. -
setProvision
Provision this attribute to IDM.
The value or list of comma-separated values indicate into what type(s) of IDM object provisioning services should provision this data.
The actual fields to provision would usually be selected based on name/namespace URI.
Generic values: true (a provisioning service selects an appropriate target), false (not provisioned - single value only).
Default: false- Since:
- 1.9.0
- See Also:
-
setProvisioningId
ID attribute for provisioning.- Since:
- 1.9.0
- See Also:
-
setValue
Single value from constant configuration (we currently only use single valued in XML via ConstAttributes). -
setScope
To restrict emitting an attribute, the scope can be set as follows:- saml: Use only in SAML assertions
- oidc: Use only in OIDC tokens (oidcName must be set)
-
setRequired
Indicates whether this attribute is mandatory.
For an AuthnResponse, this attribute must always be included- Since:
- 1.14.0
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-