Class OpenSamlMetadataProperties
java.lang.Object
se.swedenconnect.security.credential.opensaml.OpenSamlMetadataProperties
Symbolic constants for storing OpenSAML specific properties in a
PkiCredential.Metadata object.- Author:
- Martin Lindström
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic List<EncryptionMethodMetadata> getEncryptionMethods(PkiCredential.Metadata metadata) Gets the encryption methods property from the supplied metadata.static StringgetEntityId(PkiCredential.Metadata metadata) Gets the entityID property.static voidsetEncryptionMethods(PkiCredential.Metadata metadata, String encryptionMethods) Assigns the encryption methods given the string representation (seeEncryptionMethodMetadata.parseMethods(String)) of the methods.static voidsetEncryptionMethods(PkiCredential.Metadata metadata, List<EncryptionMethodMetadata> encryptionMethods) Assigns the encryption methods property.static voidsetEntityId(PkiCredential.Metadata metadata, String entityId) Assigns the entityID property to the metadata.
-
Field Details
-
ENTITY_ID_PROPERTY
Property name for assigning a SAML entity ID to the credential metadata. Holds aString.- See Also:
-
ENCRYPTION_METHODS
Property name for holdingmd:EncryptionMethod. This property holds aListofEncryptionMethodMetadataobjects.- See Also:
-
-
Method Details
-
setEntityId
Assigns the entityID property to the metadata.- Parameters:
metadata- the metadata to updateentityId- the entity ID - ifnull, the property is reset
-
getEntityId
Gets the entityID property.- Parameters:
metadata- the metadata- Returns:
- an entityID
String, ornull
-
setEncryptionMethods
public static void setEncryptionMethods(@Nonnull PkiCredential.Metadata metadata, @Nullable String encryptionMethods) Assigns the encryption methods given the string representation (seeEncryptionMethodMetadata.parseMethods(String)) of the methods.- Parameters:
metadata- the metadata to updateencryptionMethods- 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 updateencryptionMethods- 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
-