pub struct RbumCertServ;Implementations§
Source§impl RbumCertServ
impl RbumCertServ
Sourcepub async fn add_vcode_to_cache(
ak: &str,
vcode: &str,
cert_conf_id: &str,
cool_down_in_sec: Option<u32>,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<()>
pub async fn add_vcode_to_cache( ak: &str, vcode: &str, cert_conf_id: &str, cool_down_in_sec: Option<u32>, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<()>
Add dynamic sk(verification code) to cache
添加动态sk(验证码)到缓存
Sourcepub async fn get_vcode_in_cache(
ak: &str,
own_paths: &str,
funs: &TardisFunsInst,
) -> TardisResult<Option<String>>
pub async fn get_vcode_in_cache( ak: &str, own_paths: &str, funs: &TardisFunsInst, ) -> TardisResult<Option<String>>
Get dynamic sk(verification code) from cache
从缓存中获取动态sk(验证码)
Sourcepub async fn get_and_delete_vcode_in_cache(
ak: &str,
own_paths: &str,
funs: &TardisFunsInst,
) -> TardisResult<Option<String>>
pub async fn get_and_delete_vcode_in_cache( ak: &str, own_paths: &str, funs: &TardisFunsInst, ) -> TardisResult<Option<String>>
Get and delete dynamic sk(verification code) from cache
从缓存中获取并删除动态sk(验证码)
Sourcepub async fn check_exist(
ak: &str,
rbum_cert_conf_id: &str,
own_paths: &str,
funs: &TardisFunsInst,
) -> TardisResult<bool>
pub async fn check_exist( ak: &str, rbum_cert_conf_id: &str, own_paths: &str, funs: &TardisFunsInst, ) -> TardisResult<bool>
Check whether the certificate is exist
检查凭证是否存在
Sourcepub async fn validate_by_spec_cert_conf(
ak: &str,
input_sk: &str,
rbum_cert_conf_id: &str,
ignore_end_time: bool,
own_paths: &str,
funs: &TardisFunsInst,
) -> TardisResult<(String, RbumCertRelKind, String)>
pub async fn validate_by_spec_cert_conf( ak: &str, input_sk: &str, rbum_cert_conf_id: &str, ignore_end_time: bool, own_paths: &str, funs: &TardisFunsInst, ) -> TardisResult<(String, RbumCertRelKind, String)>
Validate the validity of the certificate according to the specified certificate configuration
根据指定的凭证配置,验证凭证的合法性
§Parameters
ak- Access keyinput_sk- Secret keyrbum_cert_conf_id- Certificate configuration idignore_end_time- Whether to ignore the expiration timeown_paths- Own pathsfuns- TardisFunsInst
§Returns
- (the certificate id, certificate relationship type, and certificate relationship id)
Sourcepub async fn validate_by_ak_and_basic_sk(
ak: &str,
input_sk: &str,
rel_rbum_kind: &RbumCertRelKind,
ignore_end_time: bool,
own_paths: Option<String>,
allowed_kinds: Vec<&str>,
funs: &TardisFunsInst,
) -> TardisResult<(String, RbumCertRelKind, String)>
pub async fn validate_by_ak_and_basic_sk( ak: &str, input_sk: &str, rel_rbum_kind: &RbumCertRelKind, ignore_end_time: bool, own_paths: Option<String>, allowed_kinds: Vec<&str>, funs: &TardisFunsInst, ) -> TardisResult<(String, RbumCertRelKind, String)>
Validate the validity of the certificate using the current or basic certificate configuration
使用当前或基础凭证配置,验证凭证的合法性
§Parameters
ak- Access keyinput_sk- Secret keyrel_rbum_kind- Certificate relationship typeignore_end_time- Whether to ignore the expiration timeown_paths- Own pathsallowed_kinds- Allowed certificate configuration typesfuns- TardisFunsInst
§Returns
- (the certificate id, certificate relationship type, and certificate relationship id)
Sourcepub async fn show_sk(
id: &str,
filter: &RbumCertFilterReq,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<String>
pub async fn show_sk( id: &str, filter: &RbumCertFilterReq, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<String>
Show sk
显示sk
Sourcepub async fn reset_sk(
id: &str,
new_sk: &str,
is_ignore_check_sk: bool,
filter: &RbumCertFilterReq,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<()>
pub async fn reset_sk( id: &str, new_sk: &str, is_ignore_check_sk: bool, filter: &RbumCertFilterReq, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<()>
Reset sk
重置sk
Sourcepub async fn change_sk(
id: &str,
original_sk: &str,
input_sk: &str,
filter: &RbumCertFilterReq,
funs: &TardisFunsInst,
ctx: &TardisContext,
) -> TardisResult<()>
pub async fn change_sk( id: &str, original_sk: &str, input_sk: &str, filter: &RbumCertFilterReq, funs: &TardisFunsInst, ctx: &TardisContext, ) -> TardisResult<()>
Change sk
更改sk
Sourcepub async fn cert_is_locked(
rel_rbum_id: &str,
funs: &TardisFunsInst,
) -> TardisResult<bool>
pub async fn cert_is_locked( rel_rbum_id: &str, funs: &TardisFunsInst, ) -> TardisResult<bool>
Check whether the certificate is locked
检查证书是否被锁定
Auto Trait Implementations§
impl Freeze for RbumCertServ
impl RefUnwindSafe for RbumCertServ
impl Send for RbumCertServ
impl Sync for RbumCertServ
impl Unpin for RbumCertServ
impl UnwindSafe for RbumCertServ
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more