Class FederationEntityMetadata
java.lang.Object
com.nimbusds.openid.connect.sdk.federation.entities.FederationEntityMetadata
Federation entity metadata.
Related specifications:
- OpenID Connect Federation 1.0, section 4.8.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new federation entity metadata.FederationEntityMetadata
(URI federationFetchEndpoint) Creates a new federation entity metadata. -
Method Summary
Modifier and TypeMethodDescriptionGets the entity contacts.Gets the federation fetch endpoint.Gets the federation list endpoint.Gets the federation resolve endpoint.Gets the federation trust mark status endpoint.Gets the homepage URI.Gets the logo URI.Gets the organisation name.Gets the conditions and policies documentation URI.static FederationEntityMetadata
Parses a federation entity metadata from the specified JSON object string.static FederationEntityMetadata
parse
(net.minidev.json.JSONObject jsonObject) Parses a federation entity metadata from the specified a JSON object.void
setContacts
(List<String> contacts) Sets the entity contacts.void
setFederationFetchEndpointURI
(URI federationFetchEndpoint) Sets the federation fetch endpoint.void
setFederationListEndpointURI
(URI federationListEndpoint) Sets the federation list endpoint.void
setFederationResolveEndpointURI
(URI federationResolveEndpoint) Sets the federation resolve endpoint.void
setFederationTrustMarkStatusEndpointURI
(URI federationTrustMarkStatusEndpoint) Sets the federation trust mark status endpoint.void
setHomepageURI
(URI homepageURI) Sets the homepage URI.void
setLogoURI
(URI logoURI) Sets the logo URI.void
setOrganizationName
(String organizationName) Sets the organisation name.void
setPolicyURI
(URI policyURI) Sets the conditions and policies documentation URI.net.minidev.json.JSONObject
Returns a JSON object representation of this federation entity metadata.
-
Constructor Details
-
FederationEntityMetadata
public FederationEntityMetadata()Creates a new federation entity metadata. -
FederationEntityMetadata
Creates a new federation entity metadata.- Parameters:
federationFetchEndpoint
- The federation fetch endpoint, required for trust anchors and intermediate entities, optional for leaf entities.
-
-
Method Details
-
getFederationFetchEndpointURI
Gets the federation fetch endpoint. Corresponds to thefederation_fetch_endpoint
metadata field.- Returns:
- The federation fetch endpoint,
null
if not specified.
-
setFederationFetchEndpointURI
Sets the federation fetch endpoint. Corresponds to thefederation_fetch_endpoint
metadata field.- Parameters:
federationFetchEndpoint
- The federation fetch endpoint,null
if not specified.
-
getFederationListEndpointURI
Gets the federation list endpoint. Corresponds to thefederation_list_endpoint
metadata field.- Returns:
- The federation list endpoint,
null
if not specified.
-
setFederationListEndpointURI
Sets the federation list endpoint. Corresponds to thefederation_list_endpoint
metadata field.- Parameters:
federationListEndpoint
- The federation list endpoint,null
if not specified.
-
getFederationResolveEndpointURI
Gets the federation resolve endpoint. Corresponds to thefederation_resolve_endpoint
metadata field.- Returns:
- The federation resolve endpoint,
null
if not specified.
-
setFederationResolveEndpointURI
Sets the federation resolve endpoint. Corresponds to thefederation_resolve_endpoint
metadata field.- Parameters:
federationResolveEndpoint
- The federation resolve endpoint,null
if not specified.
-
getFederationTrustMarkStatusEndpointURI
Gets the federation trust mark status endpoint.- Returns:
- The federation trust mark status endpoint,
null
if not specified.
-
setFederationTrustMarkStatusEndpointURI
Sets the federation trust mark status endpoint.- Parameters:
federationTrustMarkStatusEndpoint
- The federation trust mark status endpoint,null
if not specified.
-
getOrganizationName
Gets the organisation name. Corresponds to theorganization_name
metadata field.- Returns:
- The organisation name,
null
if not specified.
-
setOrganizationName
Sets the organisation name. Corresponds to theorganization_name
metadata field.- Parameters:
organizationName
- The organisation name,null
if not specified.
-
getContacts
Gets the entity contacts. Corresponds to thecontacts
metadata field.- Returns:
- The contacts, such as names, e-mail addresses and phone
numbers,
null
if not specified.
-
setContacts
Sets the entity contacts. Corresponds to thecontacts
metadata field.- Parameters:
contacts
- The contacts, such as names, e-mail addresses and phone numbers,null
if not specified.
-
getLogoURI
Gets the logo URI. Corresponds to thelogo_uri
metadata field.- Returns:
- The logo URI,
null
if not specified.
-
setLogoURI
Sets the logo URI. Corresponds to thelogo_uri
metadata field.- Parameters:
logoURI
- The logo URI,null
if not specified.
-
getPolicyURI
Gets the conditions and policies documentation URI. Corresponds to thepolicy_uri
metadata field.- Returns:
- The policy URI,
null
if not specified.
-
setPolicyURI
Sets the conditions and policies documentation URI. Corresponds to thepolicy_uri
metadata field.- Parameters:
policyURI
- The policy URI,null
if not specified.
-
getHomepageURI
Gets the homepage URI. Corresponds to thehomepage_uri
metadata field.- Returns:
- The homepage URI,
null
if not specified.
-
setHomepageURI
Sets the homepage URI. Corresponds to thehomepage_uri
metadata field.- Parameters:
homepageURI
- The homepage URI,null
if not specified.
-
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
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.
-