pub enum SamlError {
Show 21 variants
InvalidRequest(String),
InvalidResponse(String),
InvalidAssertion(String),
SignatureVerificationFailed(String),
MissingSignature,
CertificateError(String),
XmlParsingError(String),
Base64DecodeError(String),
CompressionError(String),
TimeValidationError(String),
AssertionExpired,
AssertionNotYetValid,
AudienceValidationFailed {
expected: String,
actual: String,
},
IssuerValidationFailed {
expected: String,
actual: String,
},
DestinationValidationFailed,
ReplayAttackDetected,
ConfigurationError(String),
MetadataError(String),
UnsupportedBinding(String),
UnsupportedNameIdFormat(String),
Other(String),
}Expand description
SAML 错误类型
Variants§
InvalidRequest(String)
无效的 SAML 请求
InvalidResponse(String)
无效的 SAML 响应
InvalidAssertion(String)
无效的断言
SignatureVerificationFailed(String)
签名验证失败
MissingSignature
缺少签名
CertificateError(String)
证书错误
XmlParsingError(String)
XML 解析错误
Base64DecodeError(String)
Base64 解码错误
CompressionError(String)
压缩/解压错误
TimeValidationError(String)
时间验证失败
AssertionExpired
断言已过期
AssertionNotYetValid
断言尚未生效
AudienceValidationFailed
受众验证失败
IssuerValidationFailed
发行人验证失败
DestinationValidationFailed
目标验证失败
ReplayAttackDetected
重放攻击检测
ConfigurationError(String)
配置错误
MetadataError(String)
元数据错误
UnsupportedBinding(String)
绑定不支持
UnsupportedNameIdFormat(String)
名称 ID 格式不支持
Other(String)
其他错误
Trait Implementations§
Source§impl Error for SamlError
impl Error for SamlError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SamlError
impl RefUnwindSafe for SamlError
impl Send for SamlError
impl Sync for SamlError
impl Unpin for SamlError
impl UnsafeUnpin for SamlError
impl UnwindSafe for SamlError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more