Class FederationEntityMetadata
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.federation.entities.FederationEntityMetadata
-
public class FederationEntityMetadata extends Object
Federation entity metadata.Related specifications:
- OpenID Connect Federation 1.0, section 4.8.
-
-
Constructor Summary
Constructors Constructor Description FederationEntityMetadata()Creates a new federation entity metadata.FederationEntityMetadata(URI federationFetchEndpoint)Creates a new federation entity metadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getContacts()Gets the entity contacts.URIgetFederationFetchEndpointURI()Gets the federation fetch endpoint.URIgetFederationListEndpointURI()Gets the federation list endpoint.URIgetFederationResolveEndpointURI()Gets the federation resolve endpoint.URIgetFederationTrustMarkStatusEndpointURI()Gets the federation trust mark status endpoint.URIgetHomepageURI()Gets the homepage URI.URIgetLogoURI()Gets the logo URI.StringgetOrganizationName()Gets the organisation name.URIgetPolicyURI()Gets the conditions and policies documentation URI.static FederationEntityMetadataparse(String json)Parses a federation entity metadata from the specified JSON object string.static FederationEntityMetadataparse(net.minidev.json.JSONObject jsonObject)Parses a federation entity metadata from the specified a JSON object.voidsetContacts(List<String> contacts)Sets the entity contacts.voidsetFederationFetchEndpointURI(URI federationFetchEndpoint)Sets the federation fetch endpoint.voidsetFederationListEndpointURI(URI federationListEndpoint)Sets the federation list endpoint.voidsetFederationResolveEndpointURI(URI federationResolveEndpoint)Sets the federation resolve endpoint.voidsetFederationTrustMarkStatusEndpointURI(URI federationTrustMarkStatusEndpoint)Sets the federation trust mark status endpoint.voidsetHomepageURI(URI homepageURI)Sets the homepage URI.voidsetLogoURI(URI logoURI)Sets the logo URI.voidsetOrganizationName(String organizationName)Sets the organisation name.voidsetPolicyURI(URI policyURI)Sets the conditions and policies documentation URI.net.minidev.json.JSONObjecttoJSONObject()Returns a JSON object representation of this federation entity metadata.
-
-
-
Constructor Detail
-
FederationEntityMetadata
public FederationEntityMetadata()
Creates a new federation entity metadata.
-
FederationEntityMetadata
public FederationEntityMetadata(URI federationFetchEndpoint)
Creates a new federation entity metadata.- Parameters:
federationFetchEndpoint- The federation fetch endpoint, required for trust anchors and intermediate entities, optional for leaf entities.
-
-
Method Detail
-
getFederationFetchEndpointURI
public URI getFederationFetchEndpointURI()
Gets the federation fetch endpoint. Corresponds to thefederation_fetch_endpointmetadata field.- Returns:
- The federation fetch endpoint,
nullif not specified.
-
setFederationFetchEndpointURI
public void setFederationFetchEndpointURI(URI federationFetchEndpoint)
Sets the federation fetch endpoint. Corresponds to thefederation_fetch_endpointmetadata field.- Parameters:
federationFetchEndpoint- The federation fetch endpoint,nullif not specified.
-
getFederationListEndpointURI
public URI getFederationListEndpointURI()
Gets the federation list endpoint. Corresponds to thefederation_list_endpointmetadata field.- Returns:
- The federation list endpoint,
nullif not specified.
-
setFederationListEndpointURI
public void setFederationListEndpointURI(URI federationListEndpoint)
Sets the federation list endpoint. Corresponds to thefederation_list_endpointmetadata field.- Parameters:
federationListEndpoint- The federation list endpoint,nullif not specified.
-
getFederationResolveEndpointURI
public URI getFederationResolveEndpointURI()
Gets the federation resolve endpoint. Corresponds to thefederation_resolve_endpointmetadata field.- Returns:
- The federation resolve endpoint,
nullif not specified.
-
setFederationResolveEndpointURI
public void setFederationResolveEndpointURI(URI federationResolveEndpoint)
Sets the federation resolve endpoint. Corresponds to thefederation_resolve_endpointmetadata field.- Parameters:
federationResolveEndpoint- The federation resolve endpoint,nullif not specified.
-
getFederationTrustMarkStatusEndpointURI
public URI getFederationTrustMarkStatusEndpointURI()
Gets the federation trust mark status endpoint.- Returns:
- The federation trust mark status endpoint,
nullif not specified.
-
setFederationTrustMarkStatusEndpointURI
public void setFederationTrustMarkStatusEndpointURI(URI federationTrustMarkStatusEndpoint)
Sets the federation trust mark status endpoint.- Parameters:
federationTrustMarkStatusEndpoint- The federation trust mark status endpoint,nullif not specified.
-
getOrganizationName
public String getOrganizationName()
Gets the organisation name. Corresponds to theorganization_namemetadata field.- Returns:
- The organisation name,
nullif not specified.
-
setOrganizationName
public void setOrganizationName(String organizationName)
Sets the organisation name. Corresponds to theorganization_namemetadata field.- Parameters:
organizationName- The organisation name,nullif not specified.
-
getContacts
public List<String> getContacts()
Gets the entity contacts. Corresponds to thecontactsmetadata field.- Returns:
- The contacts, such as names, e-mail addresses and phone
numbers,
nullif not specified.
-
setContacts
public void setContacts(List<String> contacts)
Sets the entity contacts. Corresponds to thecontactsmetadata field.- Parameters:
contacts- The contacts, such as names, e-mail addresses and phone numbers,nullif not specified.
-
getLogoURI
public URI getLogoURI()
Gets the logo URI. Corresponds to thelogo_urimetadata field.- Returns:
- The logo URI,
nullif not specified.
-
setLogoURI
public void setLogoURI(URI logoURI)
Sets the logo URI. Corresponds to thelogo_urimetadata field.- Parameters:
logoURI- The logo URI,nullif not specified.
-
getPolicyURI
public URI getPolicyURI()
Gets the conditions and policies documentation URI. Corresponds to thepolicy_urimetadata field.- Returns:
- The policy URI,
nullif not specified.
-
setPolicyURI
public void setPolicyURI(URI policyURI)
Sets the conditions and policies documentation URI. Corresponds to thepolicy_urimetadata field.- Parameters:
policyURI- The policy URI,nullif not specified.
-
getHomepageURI
public URI getHomepageURI()
Gets the homepage URI. Corresponds to thehomepage_urimetadata field.- Returns:
- The homepage URI,
nullif not specified.
-
setHomepageURI
public void setHomepageURI(URI homepageURI)
Sets the homepage URI. Corresponds to thehomepage_urimetadata field.- Parameters:
homepageURI- The homepage URI,nullif not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns a JSON object representation of this federation entity metadata.Example:
{ "federation_fetch_endpoint" : "https://example.com/federation_fetch", "federation_list_endpoint" : "https://example.com/federation_list", "federation_trust_mark_status_endpoint" : "https://example.com/federation_status", "name" : "The example cooperation", "homepage_uri" : "https://www.example.com" }- Returns:
- The JSON object.
-
parse
public static FederationEntityMetadata parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses a federation entity metadata from the specified a JSON object.Example:
{ "federation_fetch_endpoint" : "https://example.com/federation_fetch", "federation_list_endpoint" : "https://example.com/federation_list", "name" : "The example cooperation", "homepage_uri" : "https://www.example.com" }- Parameters:
jsonObject- The JSON object. Must not benull.- Returns:
- The federation entity metadata.
- Throws:
ParseException- If parsing failed.
-
parse
public static FederationEntityMetadata parse(String json) throws ParseException
Parses a federation entity metadata from the specified JSON object string.Example:
{ "federation_fetch_endpoint" : "https://example.com/federation_fetch", "federation_list_endpoint" : "https://example.com/federation_list", "federation_trust_mark_status_endpoint" : "https://example.com/federation_status", "name" : "The example cooperation", "homepage_uri" : "https://www.example.com" }- Parameters:
json- The JSON object string. Must not benull.- Returns:
- The federation entity metadata.
- Throws:
ParseException- If parsing failed.
-
-