Class CryptoTransientNameIDDecoder

All Implemented Interfaces:
NameIDDecoder, Component, DestructableComponent, IdentifiableComponent, IdentifiedComponent, InitializableComponent

public class CryptoTransientNameIDDecoder extends BaseCryptoTransientDecoder implements NameIDDecoder
Processes a transient NameID, checks that its NameIDType.getNameQualifier() and NameIDType.getSPNameQualifier() are correct, and decodes XSString.getValue() via the base class (reversing the work done by CryptoTransientIdGenerationStrategy).
  • Constructor Details

    • CryptoTransientNameIDDecoder

      public CryptoTransientNameIDDecoder()
  • Method Details

    • decode

      @Nullable @NotEmpty public String decode(@Nonnull SubjectCanonicalizationContext c14nContext, @Nonnull NameID nameID)
      Decode the provided NameID.

      If the object is incompatible with the decoder in some way, a null is returned.

      Specified by:
      decode in interface NameIDDecoder
      Parameters:
      c14nContext - the active c14n context
      nameID - the object to decode
      Returns:
      the principal decoded from the value, or null