pub fn x509_certificate_chain(&self) -> Option<Vec<Vec<u8>>> {
        match self.claim("x5c") {
            Some(Value::Array(vals)) => {
                let mut vec = Vec::with_capacity(vals.len());
                for val in vals {
                    match val {
                        Value::String(val2) => {
                            match base64::decode_config(val2, base64::URL_SAFE_NO_PAD) {
                                Ok(val3) => vec.push(val3.clone()),
                                Err(_) => return None,
                            }
                        }
                        _ => return None,
                    }
                }
                Some(vec)
            }
            _ => None,
        }
    }
/// Return values for a X.509 certificate chain header claim (x5c).
Return values for a X.509 certificate chain header claim (x5c).
Return values for a X . 509 certificate chain header claim ( x5c ) .
pub fn x509_certificate_chain(&self) -> Option<Vec<Vec<u8>>> {
        match self.claim("x5c") {
            Some(Value::Array(vals)) => {
                let mut vec = Vec::with_capacity(vals.len());
                for val in vals {
                    match val {
                        Value::String(val2) => {
                            match base64::decode_config(val2, base64::URL_SAFE_NO_PAD) {
                                Ok(val3) => vec.push(val3.clone()),
                                Err(_) => return None,
                            }
                        }
                        _ => return None,
                    }
                }
                Some(vec)
            }
            _ => None,
        }
    }
pub fn x509_certificate_chain ( & self ) -> Option < Vec < Vec < u8 > > > { match self . claim ( " " ) { Some ( Value :: Array ( vals ) ) => { let mut vec = Vec :: with_capacity ( vals . len ( ) ) ; for val in vals { match val { Value :: String ( val2 ) => { match base64 :: decode_config ( val2 , base64 :: URL_SAFE_NO_PAD ) { Ok ( val3 ) => vec . push ( val3 . clone ( ) ) , Err ( _ ) => return None , } } _ => return None , } } Some ( vec ) } _ => None , } }
Return values for a X.509 certificate chain header claim (x5c).
Return values for a X . 509 certificate chain header claim ( x5c ) .
&self
&self