Class MetadataSource
- java.lang.Object
-
- org.opensaml.saml.metadata.resolver.filter.data.impl.MetadataSource
-
- All Implemented Interfaces:
MetadataFilterContext.Data
public class MetadataSource extends Object implements MetadataFilterContext.Data
Data object forMetadataFilterContext
intended to hold information about the source of the metadata currently being processed.- Since:
- 4.0.0
-
-
Constructor Summary
Constructors Constructor Description MetadataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSourceId()
Get identifier of the metadata source.boolean
isTrusted()
Get whether the metadata source is trusted.void
setSourceId(String id)
Set identifier of the metadata source.void
setTrusted(boolean flag)
Set whether the metadata source is trusted.
-
-
-
Field Detail
-
sourceId
@Nullable private String sourceId
An identifier for the source of the metadata, typically the resolver ID.
-
trusted
private boolean trusted
Flag indicating whether the metadata source is trusted.
-
-
Method Detail
-
getSourceId
@Nullable public String getSourceId()
Get identifier of the metadata source.- Returns:
- source identifier
-
setSourceId
public void setSourceId(@Nullable String id)
Set identifier of the metadata source.- Parameters:
id
- source identifier
-
isTrusted
public boolean isTrusted()
Get whether the metadata source is trusted.- Returns:
- true if trusted, false if not
-
setTrusted
public void setTrusted(boolean flag)
Set whether the metadata source is trusted.- Parameters:
flag
- true if trusted, false if not
-
-