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)
    • 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)
    • 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()
    • getAuthenticationJwsAlgos

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

      public List<String> getResponseModes()
    • getResponseTypes

      public List<String> getResponseTypes()
    • setAvailableTypes

      public void setAvailableTypes(List<EAuthClientType> availableTypes)
    • 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()
    • addNewCustParameter

      public void addNewCustParameter(ParameterModel model)
    • removeCustParameter

      public void removeCustParameter(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
    • resetAttribtues

      public void resetAttribtues()
      resets all Bean Attribtues
    • 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()
    • 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()