Class AExternalUserBean<F extends IAuthentticatorFile<?,?>, E extends AAuthenticator<F>>

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ExternalUserClientBean, ExternalUserSystemBean

public abstract class AExternalUserBean<F extends IAuthentticatorFile<?,?>, E extends AAuthenticator<F>> extends FCContextBean
Author:
XIMA MEDIA GmbH, Dresden - Michael Kohlsche - 09.04.2020
See Also:
  • Field Details

  • Constructor Details

    • AExternalUserBean

      public AExternalUserBean()
  • Method Details

    • getCallbackUrlTemplate

      public String getCallbackUrlTemplate()
    • createNewFile

      public abstract F createNewFile(byte[] data, String filename)
    • getNameValidatorId

      public abstract String getNameValidatorId()
    • validateAlias

      public abstract boolean validateAlias(String alias)
    • isNameExists

      public abstract boolean isNameExists(String name)
    • canAccessAuthenticatorType

      public abstract boolean canAccessAuthenticatorType(EAuthClientType type)
    • addNew

      public abstract void addNew()
    • isSystem

      public abstract boolean isSystem()
    • getDao

      protected abstract IGenericDao<E> getDao()
    • save

      protected abstract IAuthenticator<F> save(IEntityContext ec, E authenticator)
    • save

      protected abstract void save(IEntityContext ec, EAuthClientType type)
    • newModel

      protected abstract DataTableEntriesModel<IClientDescriptor> newModel()
    • getEntitySelectionType

      protected abstract EEntityKeySelectionType getEntitySelectionType()
    • getAuthenticatorTypeOptions

      protected abstract List<EAuthClientType> getAuthenticatorTypeOptions()
    • initNewSamlProps

      protected abstract void initNewSamlProps(E authenticator)
    • buildServerOptions

      protected abstract List<IServerModel> buildServerOptions()
    • isShowOmitWelcomeMail

      public boolean isShowOmitWelcomeMail()
    • validateDelete

      public void validateDelete(E entity)
    • delete

      public void delete(E entity)
    • getIconStyleClass

      public String getIconStyleClass(IClientDescriptor client)
    • getIconStyle

      public String getIconStyle(IClientDescriptor client)
    • getIconValue

      public String getIconValue(IClientDescriptor client)
    • showOidcTokenExpirationAdvancedWarning

      public boolean showOidcTokenExpirationAdvancedWarning(IClientDescriptor client)
    • deleteMarkedEntities

      public void deleteMarkedEntities()
    • getConfirmDeleteMessages

      public List<javax.faces.application.FacesMessage> getConfirmDeleteMessages()
    • getModel

    • getToDelete

      public E getToDelete()
    • getSelectedServer

      public IServerModel getSelectedServer()
    • setSelectedServer

      public void setSelectedServer(IServerModel selectedServer)
    • getSelectedServers

      public List<IServerModel> getSelectedServers()
    • setSelectedServers

      public void setSelectedServers(List<IServerModel> selectedServers)
    • getServerOptions

      public List<IServerModel> getServerOptions()
    • getSamlSpGeneratedMetadata

      public org.primefaces.model.StreamedContent getSamlSpGeneratedMetadata()
    • getCustParameter

      public List<ParameterModel> getCustParameter()
    • setCustParameter

      public void setCustParameter(List<ParameterModel> parameter)
    • getMappings

      public List<ParameterModel> getMappings()
    • setMappings

      public void setMappings(List<ParameterModel> mappings)
    • getAuthProps

      public IAuthenticatorProperties<E> getAuthProps()
    • getAuthenticationMethods

      public List<org.apache.commons.lang3.tuple.Pair<String,String>> getAuthenticationMethods()
    • getGoogleScopes

      public List<org.apache.commons.lang3.tuple.Pair<String,String>> getGoogleScopes()
    • getAvailableTypes

      public List<EAuthClientType> getAvailableTypes()
    • setAvailableTypes

      public void setAvailableTypes(List<EAuthClientType> availableTypes)
    • getAuthenticationJwsAlgos

      public List<String> getAuthenticationJwsAlgos(boolean includeNone)
    • getResponseModes

      public List<String> getResponseModes()
    • getResponseTypes

      public List<String> getResponseTypes()
    • isUploadKeyStore

      public boolean isUploadKeyStore()
    • getNewKSPassword

      public String getNewKSPassword()
    • setNewKSPassword

      public void setNewKSPassword(String newKSPassword)
    • getNewKPPassword

      public String getNewKPPassword()
    • setNewKPPassword

      public void setNewKPPassword(String newKPPassword)
    • getMapFirstName

      public String getMapFirstName()
    • setMapFirstName

      public void setMapFirstName(String mapFirstName)
    • getMapLastName

      public String getMapLastName()
    • setMapLastName

      public void setMapLastName(String mapLastName)
    • getMapDisplayName

      public String getMapDisplayName()
    • setMapDisplayName

      public void setMapDisplayName(String mapDisplayName)
    • getMapUserName

      public String getMapUserName()
    • setMapUserName

      public void setMapUserName(String mapUserName)
    • getMapMail

      public String getMapMail()
    • setMapMail

      public void setMapMail(String mapMail)
    • getMapLocale

      public String getMapLocale()
    • setMapLocale

      public void setMapLocale(String mapLocale)
    • getMapLocation

      public String getMapLocation()
    • setMapLocation

      public void setMapLocation(String mapLocation)
    • getMapPictureUrl

      public String getMapPictureUrl()
    • setMapPictureUrl

      public void setMapPictureUrl(String mapPictureUrl)
    • getMapProfileUrl

      public String getMapProfileUrl()
    • setMapProfileUrl

      public void setMapProfileUrl(String mapProfileUrl)
    • getPluginFiles

      public List<AuthPluginParameterModel<F>> getPluginFiles()
    • setPluginFiles

      public void setPluginFiles(List<AuthPluginParameterModel<F>> pluginFiles)
    • getUuidString

      public String getUuidString()
    • setUuidString

      public void setUuidString(String uUIDString)
    • getOidDisabledScopeTags

      public List<String> getOidDisabledScopeTags()
    • getFacebookDisabledScopeTags

      public List<String> getFacebookDisabledScopeTags()
    • uploadFile

      public void uploadFile(org.primefaces.event.FileUploadEvent event)
    • addNewCustParameter

      public ParameterModel addNewCustParameter()
    • addNewMapping

      public ParameterModel addNewMapping()
    • addNewCustParameter

      public void addNewCustParameter(ParameterModel model)
    • addNewMapping

      public void addNewMapping(ParameterModel model)
    • removeCustParameter

      public void removeCustParameter(int idx)
    • removeMapping

      public void removeMapping(int idx)
    • removeFileParameter

      public void removeFileParameter(int idx)
    • addFileParameter

      public void addFileParameter(AuthPluginParameterModel<F> model)
    • isSelectionDisabled

      public boolean isSelectionDisabled(IClientDescriptor descriptor)
    • hasCallbackUrl

      public boolean hasCallbackUrl(IClientDescriptor descriptor)
    • isRedirectClient

      public boolean isRedirectClient(IClientDescriptor descriptor)
    • getSelectColumnStyleClass

      public String getSelectColumnStyleClass(IClientDescriptor descriptor)
    • getRowStyleClass

      public String getRowStyleClass(IClientDescriptor descriptor)
    • getNameStyleClass

      public String getNameStyleClass(IClientDescriptor descriptor)
    • getRowKey

      public String getRowKey(IClientDescriptor descriptor)
    • getName

      public String getName(IClientDescriptor descriptor)
    • getDescription

      public String getDescription(IClientDescriptor descriptor)
    • save

      public void save()
      saves current configuration in selected model
    • setKeystoreFile

      public boolean setKeystoreFile(byte[] data, String filename, String keystorePassword, String keypairPassword, boolean isCustom)
    • generateNewKeyStore

      public void generateNewKeyStore()
    • uploadCustomKeyStore

      public void uploadCustomKeyStore(org.primefaces.event.FileUploadEvent event)
    • setIdPMetadataFile

      public void setIdPMetadataFile(byte[] data, String filename)
    • uploadIdentityProviderMetadata

      public void uploadIdentityProviderMetadata(org.primefaces.event.FileUploadEvent event)
    • refreshClient

      public void refreshClient()
    • getDefaultSpEntityId

      public String getDefaultSpEntityId(E authenticator)
    • generateServiceProviderMetadata

      public void generateServiceProviderMetadata()
    • isCustom

      public boolean isCustom(IServerModel serverModel)
    • isServerOptionsMultiSelect

      public boolean isServerOptionsMultiSelect()
    • activateConfigState

      public void activateConfigState()
    • getGeneratedKeyStoreInfos

      public String getGeneratedKeyStoreInfos()
    • updateAuthProps

      public void updateAuthProps()
      creates Attributes from selected ClientAuthenticator model
    • resetAttributes

      public void resetAttributes()
      resets all Bean attributes
    • saveTempAttributes

      public void saveTempAttributes()
    • addCustomServerOption

      public void addCustomServerOption(String baseUrl)
    • initServerOptions

      public void initServerOptions()
    • initParameterModels

      public void initParameterModels()
    • onSetType

      public void onSetType(EAuthClientType type)
    • onSetType

      public void onSetType(EAuthClientType type, String pluginName)
    • getHtmlHelpSnippet

      public String getHtmlHelpSnippet()
    • getHelpPath

      public String getHelpPath()
    • getPluginViewURL

      public URL getPluginViewURL()
    • downloadFile

      public org.primefaces.model.StreamedContent downloadFile(String fileAttribute)
    • downloadFile

      public org.primefaces.model.StreamedContent downloadFile(F file)
    • setType

      public void setType(EAuthClientType type)
    • getCallbackUrlType

      public EAuthCallbackUrlType getCallbackUrlType()
    • setCallbackUrlType

      public void setCallbackUrlType(EAuthCallbackUrlType type)
    • getCallbackURL

      public List<String> getCallbackURL()
    • getCallbackURL

      public List<String> getCallbackURL(boolean withClientName)
    • getEMailContent

      public String getEMailContent()
    • isCanAccessAnyStandardAuthenticators

      public boolean isCanAccessAnyStandardAuthenticators()
    • getAuthnRequestBindingTypes

      public List<String> getAuthnRequestBindingTypes()
    • getResponseBindingTypes

      public List<String> getResponseBindingTypes()
    • getOAuthProfileRequestTypes

      public List<String> getOAuthProfileRequestTypes()
    • translateAuthReq

      public String translateAuthReq(String constant)
    • translateBindingTypes

      public String translateBindingTypes(String constant)
    • checkConnection

      public void checkConnection()
    • showLicenseHint

      public boolean showLicenseHint(EAuthClientType type)
    • isShowCheckConnectionBtn

      public boolean isShowCheckConnectionBtn()
    • isCheckConnectionBtnDisabled

      public boolean isCheckConnectionBtnDisabled()
    • isShowTestUserRedirectClientButton

      public boolean isShowTestUserRedirectClientButton()
    • isShowTestUserInputClientButton

      public boolean isShowTestUserInputClientButton()
    • isLicensed

      public boolean isLicensed(EAuthClientType authType)
    • getSelectionStoreValue

      protected static String getSelectionStoreValue(IClientDescriptor descriptor)
    • processUpload

      protected byte[] processUpload(org.primefaces.event.FileUploadEvent event)
    • resetProps

      protected void resetProps()
    • getViewBean

      @Deprecated public ViewBean getViewBean()
      Deprecated.
    • setViewBean

      @Deprecated public void setViewBean(ViewBean viewBean)
      Deprecated.
    • getEnumBean

      @Deprecated public EnumBean getEnumBean()
      Deprecated.
    • setEnumBean

      @Deprecated public void setEnumBean(EnumBean enumBean)
      Deprecated.
    • loadCommonData

      @PostConstruct protected void loadCommonData()
    • destroyPluginBeans

      @PreDestroy protected void destroyPluginBeans()
    • getPluginForAuthenticator

      protected abstract IPluginAuthenticatorType getPluginForAuthenticator(IClientDescriptor selected)
    • getBeanHelperForSelected

    • getBeanHelperForPlugin

    • isKerberosExtensionAllowed

      public abstract boolean isKerberosExtensionAllowed(EAuthClientType type)
    • getClientScope

      protected abstract Mandant getClientScope()
    • invokeOnAuthenticatorSelectedCallback

      protected void invokeOnAuthenticatorSelectedCallback(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean, IPluginAuthenticatorType> beanHelper, IClientDescriptor selected)
    • invokeOnAuthenticatorBeforeSaveCallback

      protected boolean invokeOnAuthenticatorBeforeSaveCallback(PluginBeanHelper<IPluginAuthenticatorCustomGUIBean, IPluginAuthenticatorType> beanHelper, AAuthenticator<?> selected)
    • getCodeChallengeMethods

      public List<String> getCodeChallengeMethods()
    • getRedirectTarget

      public EAuthRedirectTarget getRedirectTarget()
      Gets the redirect behavior configured for this identity provider.

      The value is retrieved from the authenticator's internal attributes. If no specific target is configured, the system falls back to the default behavior (usually EAuthRedirectTarget._BLANK).

      Returns:
      The current redirect target
      Since:
      8.5.4
    • setRedirectTarget

      public void setRedirectTarget(EAuthRedirectTarget target)
      Sets the preferred redirect behavior for this identity provider.

      The value is persisted in the authenticator's attribute map. If the provided target is null, no changes are applied to the existing configuration.

      Parameters:
      target - Added target behavior. The old value will be replaced
      Since:
      8.5.4
    • getAvailableRedirectTargets

      public List<EAuthRedirectTarget> getAvailableRedirectTargets()
      Returns a list of redirect targets available for selection in the UI.

      This list excludes targets that are technically deprecated or unsupported in this context.

      Returns:
      An unmodifiable list of redirect targets suitable for user selection.
      Since:
      8.5.4
    • isShowRedirectTargetSelection

      public boolean isShowRedirectTargetSelection()