Class ProtocolsTrait

    • Method Detail

      • getProtocols

        public java.util.List<Protocol> getProtocols()
        Gets the list of protocols.
        Returns:
        Returns the protocols
      • getProtocolNames

        public java.util.List<java.lang.String> getProtocolNames()
        Gets the list of protocol names.
        Returns:
        Returns the list of supported protocol names.
      • getProtocol

        public java.util.Optional<Protocol> getProtocol​(java.lang.String name)
        Gets a protocol by name.
        Parameters:
        name - Name of the protocol to get.
        Returns:
        Returns the optionally found protocol.
      • hasProtocol

        public boolean hasProtocol​(java.lang.String name)
        Checks if the trait contains a protocol of the given name.
        Parameters:
        name - Name of the protocol to check.
        Returns:
        Returns true if the protocol exists for this name.
      • getAllAuthSchemes

        public java.util.Set<java.lang.String> getAllAuthSchemes()
        Gets a set of all the authentication schemes listed in each protocol.

        Iteration over the returned set provides priority order based on the order of the protocol followed by the order of the auth entry in a protocols list.

        Returns:
        Returns all supported authentication schemes.
      • createNode

        protected Node createNode()
        Description copied from class: AbstractTrait
        The result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.
        Specified by:
        createNode in class AbstractTrait
        Returns:
        Returns the trait as a node.