Class ExclusiveNameCallback

    • Constructor Detail

      • ExclusiveNameCallback

        public ExclusiveNameCallback​(String prompt,
                                     boolean needsExclusiveAccess,
                                     boolean optional)
        Construct a new instance.
        Parameters:
        prompt - the text prompt (must not be null)
        needsExclusiveAccess - true if exclusive access to the backing identity is required
        optional - true if the support for the callback is optional
      • ExclusiveNameCallback

        public ExclusiveNameCallback​(String prompt,
                                     String defaultName,
                                     boolean needsExclusiveAccess,
                                     boolean optional)
        Construct a new instance.
        Parameters:
        prompt - the text prompt (must not be null)
        defaultName - the name to be used as the default name displayed with the prompt
        needsExclusiveAccess - true if exclusive access to the backing identity is required
        optional - true if the support for the callback is optional
    • Method Detail

      • needsExclusiveAccess

        public boolean needsExclusiveAccess()
        Determine if exclusive access to the backing identity is required.
        Returns:
        true if exclusive access to the backing identity is required, false otherwise
      • hasExclusiveAccess

        public boolean hasExclusiveAccess()
        Determine if exclusive access to the backing identity was granted.
        Returns:
        true if exclusive access to the backing identity was granted, false otherwise
      • setExclusiveAccess

        public void setExclusiveAccess​(boolean exclusiveAccess)
        Set whether exclusive access to the backing identity was granted.
        Parameters:
        exclusiveAccess - true if exclusive access to the backing identity was granted, 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