Class PrincipalAndSecret<T extends Secret>

  • Type Parameters:
    T - the type of secret

    public class PrincipalAndSecret<T extends Secret>
    extends Object
    Container for a principal and secret.
    • Constructor Detail

      • PrincipalAndSecret

        public PrincipalAndSecret​(String principal,
                                  T secret)
        Constructs a new PrincipalAndSecret.
        Parameters:
        principal - the principal
        secret - the secret
    • Method Detail

      • getPrincipal

        public String getPrincipal()
        Returns the principal.
        Returns:
        the principal
      • getSecret

        public T getSecret()
        Returns the secret.
        Returns:
        the secret