IdpMetadata

sealed class IdpMetadata

A structure containing the identity provider (IdP) metadata used to integrate the identity provider with this workspace. You can specify the metadata either by providing a URL to its location in the url parameter, or by specifying the full metadata in XML format in the xml parameter. Specifying both will cause an error.

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
data class Url(val value: String) : IdpMetadata

The URL of the location containing the IdP metadata.

Link copied to clipboard
data class Xml(val value: String) : IdpMetadata

The full IdP metadata, in XML format.

Functions

Link copied to clipboard
fun asUrl(): String

Casts this IdpMetadata as a Url and retrieves its kotlin.String value. Throws an exception if the IdpMetadata is not a Url.

Link copied to clipboard

Casts this IdpMetadata as a Url and retrieves its kotlin.String value. Returns null if the IdpMetadata is not a Url.

Link copied to clipboard
fun asXml(): String

Casts this IdpMetadata as a Xml and retrieves its kotlin.String value. Throws an exception if the IdpMetadata is not a Xml.

Link copied to clipboard

Casts this IdpMetadata as a Xml and retrieves its kotlin.String value. Returns null if the IdpMetadata is not a Xml.