Class ConnectionDecryptionKeySaml
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
Private key used to decrypt encrypted SAML Assertions received from the identity provider. Required when the identity provider encrypts assertions for enhanced security. Can be a string (PEM) or an object with key-value pairs.
[JsonConverter(typeof(ConnectionDecryptionKeySaml.JsonConverter))]
[Serializable]
public class ConnectionDecryptionKeySaml
- Inheritance
-
ConnectionDecryptionKeySaml
- Inherited Members
- Extension Methods
Properties
Type
Type discriminator
[JsonIgnore]
public string Type { get; }
Property Value
Value
Union value
[JsonIgnore]
public object? Value { get; }
Property Value
Methods
AsConnectionDecryptionKeySamlCert()
Returns the value as a ConnectionDecryptionKeySamlCert if Type is 'connectionDecryptionKeySamlCert', otherwise throws an exception.
public ConnectionDecryptionKeySamlCert AsConnectionDecryptionKeySamlCert()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'connectionDecryptionKeySamlCert'.
AsString()
public string AsString()
Returns
Exceptions
- ManagementException
Thrown when Type is not 'string'.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
- bool
true if the specified object is equal to the current object; otherwise, false.
FromConnectionDecryptionKeySamlCert(ConnectionDecryptionKeySamlCert)
Factory method to create a union from a Auth0.ManagementApi.ConnectionDecryptionKeySamlCert value.
public static ConnectionDecryptionKeySaml FromConnectionDecryptionKeySamlCert(ConnectionDecryptionKeySamlCert value)
Parameters
Returns
FromString(string)
Factory method to create a union from a string value.
public static ConnectionDecryptionKeySaml FromString(string value)
Parameters
valuestring
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
IsConnectionDecryptionKeySamlCert()
Returns true if Type is "connectionDecryptionKeySamlCert"
public bool IsConnectionDecryptionKeySamlCert()
Returns
IsString()
Returns true if Type is "string"
public bool IsString()
Returns
Match<T>(Func<ConnectionDecryptionKeySamlCert, T>, Func<string, T>)
public T Match<T>(Func<ConnectionDecryptionKeySamlCert, T> onConnectionDecryptionKeySamlCert, Func<string, T> onString)
Parameters
onConnectionDecryptionKeySamlCertFunc<ConnectionDecryptionKeySamlCert, T>onStringFunc<string, T>
Returns
- T
Type Parameters
T
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
TryGetConnectionDecryptionKeySamlCert(out ConnectionDecryptionKeySamlCert?)
Attempts to cast the value to a ConnectionDecryptionKeySamlCert and returns true if successful.
public bool TryGetConnectionDecryptionKeySamlCert(out ConnectionDecryptionKeySamlCert? value)
Parameters
Returns
TryGetString(out string?)
Attempts to cast the value to a string and returns true if successful.
public bool TryGetString(out string? value)
Parameters
valuestring
Returns
Visit(Action<ConnectionDecryptionKeySamlCert>, Action<string>)
public void Visit(Action<ConnectionDecryptionKeySamlCert> onConnectionDecryptionKeySamlCert, Action<string> onString)
Parameters
onConnectionDecryptionKeySamlCertAction<ConnectionDecryptionKeySamlCert>onStringAction<string>
Operators
implicit operator ConnectionDecryptionKeySaml(ConnectionDecryptionKeySamlCert)
public static implicit operator ConnectionDecryptionKeySaml(ConnectionDecryptionKeySamlCert value)
Parameters
Returns
implicit operator ConnectionDecryptionKeySaml(string)
public static implicit operator ConnectionDecryptionKeySaml(string value)
Parameters
valuestring