Interface EvidenceDecoder

    • Method Detail

      • getPrincipal

        Principal getPrincipal​(Evidence evidence)
        Get the principal from the given evidence. If this decoder does not understand the given evidence, null is returned.
        Parameters:
        evidence - the evidence to decode
        Returns:
        the principal, or null if this decoder does not understand the evidence
      • aggregate

        static EvidenceDecoder aggregate​(EvidenceDecoder... decoders)
        Create an aggregated evidence decoder. The aggregated decoder will try each evidence decoder until one returns a non-null value. If all the evidence decoders return null, then null will be returned.
        Parameters:
        decoders - the constituent decoders
        Returns:
        the aggregated decoder