Class KerberosRealmSettings

  • 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 KerberosRealmSettings
    extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
    Kerberos realm settings for the SPNEGO authentication flow.
    • Field Detail

      • servicePrincipal

        @NonnullAfterInit
        private String servicePrincipal
        The service's principal.
      • keytab

        @Nullable
        private String keytab
        The keytab to use (keytab and password are mutually exclusive).
      • password

        @Nullable
        private String password
        The password to use (keytab and password are mutually exclusive).
    • Constructor Detail

      • KerberosRealmSettings

        public KerberosRealmSettings()
    • Method Detail

      • setServicePrincipal

        public void setServicePrincipal​(@Nonnull @NotEmpty
                                        String principal)
        Set the service principal name. Required.
        Parameters:
        principal - service principal
      • getServicePrincipal

        @NonnullAfterInit
        @NotEmpty
        public String getServicePrincipal()
        Get the service principal name.
        Returns:
        service principal
      • setKeytab

        public void setKeytab​(@Nullable
                              String newKeytab)
        Set the keytab to use. keytab and password are mutually exclusive.
        Parameters:
        newKeytab - keytab to use
      • getKeytab

        @Nullable
        public String getKeytab()
        Get the keytab.
        Returns:
        keytab
      • setPassword

        public void setPassword​(@Nullable
                                String newPassword)
        Set the password to use. keytab and password are mutually exclusive.
        Parameters:
        newPassword - password to use
      • getPassword

        @Nullable
        public String getPassword()
        Get the password.
        Returns:
        password
      • 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