Class KerberosSettings

  • All Implemented Interfaces:
    net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent

    public class KerberosSettings
    extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
    Kerberos settings for the SPNEGO authentication flow.
    • Field Detail

      • loginModuleClassName

        @Nonnull
        @NotEmpty
        private String loginModuleClassName
        Class name of JAAS LoginModule to acquire Kerberos credentials.
      • refreshKrb5Config

        private boolean refreshKrb5Config
        Refresh the Kerberos config before running?
      • realmSettings

        @NonnullAfterInit
        @NonnullElements
        private Collection<KerberosRealmSettings> realmSettings
        List of realms (KerberosRealmSettings objects).
    • Constructor Detail

      • KerberosSettings

        public KerberosSettings()
        Constructor.
    • Method Detail

      • setLoginModuleClassName

        public void setLoginModuleClassName​(@Nonnull @NotEmpty
                                            String name)
        Set the name of the JAAS LoginModule to use to acquire Kerberos credentials.
        Parameters:
        name - name of login module class
      • getLoginModuleClassName

        @Nonnull
        @NotEmpty
        public String getLoginModuleClassName()
        Return name of the JAAS LoginModule to use to acquire Kerberos credentials.
        Returns:
        name of login module class
      • setRefreshKrb5Config

        public void setRefreshKrb5Config​(boolean flag)
        Set whether to refresh the Kerberos configuration before running.
        Parameters:
        flag - flag to set
      • getRefreshKrb5Config

        public boolean getRefreshKrb5Config()
        Return whether to refresh the Kerberos configuration before running.
        Returns:
        true if Kerberos configuration is to be refreshed
      • setRealms

        public void setRealms​(@Nonnull @NonnullElements
                              Collection<KerberosRealmSettings> realms)
        Collection of realms (KerberosRealmSettings objects).
        Parameters:
        realms - realms to set.
      • getRealms

        @Nonnull
        @NonnullElements
        @NotLive
        @Unmodifiable
        public Collection<KerberosRealmSettings> getRealms()
        Get list of realms.
        Returns:
        list of realms
      • doInitialize

        protected void doInitialize()
                             throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
        Overrides:
        doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
        Throws:
        net.shibboleth.utilities.java.support.component.ComponentInitializationException