Class OpenSamlMetadataProperties

java.lang.Object
se.swedenconnect.security.credential.opensaml.OpenSamlMetadataProperties

public class OpenSamlMetadataProperties extends Object
Symbolic constants for storing OpenSAML specific properties in a PkiCredential.Metadata object.
Author:
Martin Lindström
  • Field Details

  • Method Details

    • setEntityId

      public static void setEntityId(@Nonnull PkiCredential.Metadata metadata, @Nullable String entityId)
      Assigns the entityID property to the metadata.
      Parameters:
      metadata - the metadata to update
      entityId - the entity ID - if null, the property is reset
    • getEntityId

      @Nullable public static String getEntityId(@Nonnull PkiCredential.Metadata metadata)
      Gets the entityID property.
      Parameters:
      metadata - the metadata
      Returns:
      an entityID String, or null
    • setEncryptionMethods

      public static void setEncryptionMethods(@Nonnull PkiCredential.Metadata metadata, @Nullable String encryptionMethods)
      Assigns the encryption methods given the string representation (see EncryptionMethodMetadata.parseMethods(String)) of the methods.
      Parameters:
      metadata - the metadata to update
      encryptionMethods - the methods in string representation
    • setEncryptionMethods

      public static void setEncryptionMethods(@Nonnull PkiCredential.Metadata metadata, @Nullable List<EncryptionMethodMetadata> encryptionMethods)
      Assigns the encryption methods property.
      Parameters:
      metadata - the metadata to update
      encryptionMethods - the methods
    • getEncryptionMethods

      @Nullable public static List<EncryptionMethodMetadata> getEncryptionMethods(@Nonnull PkiCredential.Metadata metadata)
      Gets the encryption methods property from the supplied metadata.
      Parameters:
      metadata - the metadata
      Returns:
      a list of methods, or null