Class ParameterCallback

    • Constructor Detail

      • ParameterCallback

        @SafeVarargs
        public ParameterCallback​(Class<? extends AlgorithmParameterSpec>... allowedTypes)
        Construct a new instance.
        Parameters:
        allowedTypes - the allowed types of parameter specification
    • Method Detail

      • getParameterSpec

        public AlgorithmParameterSpec getParameterSpec()
        Get the parameter specification.
        Returns:
        the parameter specification, or null if it wasn't set yet
      • setParameterSpec

        public void setParameterSpec​(AlgorithmParameterSpec parameterSpec)
        Set the parameter specification.
        Parameters:
        parameterSpec - the parameter specification, or null if no parameter specification is available
      • isParameterSupported

        public boolean isParameterSupported​(AlgorithmParameterSpec parameterSpec)
        Determine whether a parameter specification would be supported by the authentication.
        Parameters:
        parameterSpec - the parameter specification to test
        Returns:
        true if the parameter specification is non-null and supported, false otherwise
      • isParameterTypeSupported

        public boolean isParameterTypeSupported​(Class<? extends AlgorithmParameterSpec> parameterType)
        Determine whether a credential type would be supported by the authentication.
        Parameters:
        parameterType - the parameter specification type to test
        Returns:
        true if the parameter specification type is supported, false otherwise
      • isOptional

        public boolean isOptional()
        Description copied from interface: ExtendedCallback
        Determine if this callback is optional.
        Specified by:
        isOptional in interface ExtendedCallback
        Returns:
        true if the callback is optional, false if it is mandatory
      • needsInformation

        public boolean needsInformation()
        Description copied from interface: ExtendedCallback
        Determine if this callback is requesting information.
        Specified by:
        needsInformation in interface ExtendedCallback
        Returns:
        true if the callback is requesting information, false if it is only providing information