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.
        evidence - the evidence to decode
        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.
        decoders - the constituent decoders
        the aggregated decoder