[−][src]Struct opcua_server::config::ServerEndpoint
Fields
path: StringEndpoint path
security_policy: StringSecurity policy
security_mode: StringSecurity mode
security_level: u8Security level, higher being more secure
password_security_policy: Option<String>Password security policy when a client supplies a user name identity token
user_token_ids: BTreeSet<String>User tokens
Implementations
impl ServerEndpoint[src]
pub fn new<T>(
path: T,
security_policy: SecurityPolicy,
security_mode: MessageSecurityMode,
user_token_ids: &[String]
) -> Self where
T: Into<String>, [src]
path: T,
security_policy: SecurityPolicy,
security_mode: MessageSecurityMode,
user_token_ids: &[String]
) -> Self where
T: Into<String>,
pub fn new_none<T>(path: T, user_token_ids: &[String]) -> Self where
T: Into<String>, [src]
T: Into<String>,
pub fn new_basic128rsa15_sign<T>(path: T, user_token_ids: &[String]) -> Self where
T: Into<String>, [src]
T: Into<String>,
pub fn new_basic128rsa15_sign_encrypt<T>(
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>, [src]
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>,
pub fn new_basic256_sign<T>(path: T, user_token_ids: &[String]) -> Self where
T: Into<String>, [src]
T: Into<String>,
pub fn new_basic256_sign_encrypt<T>(path: T, user_token_ids: &[String]) -> Self where
T: Into<String>, [src]
T: Into<String>,
pub fn new_basic256sha256_sign<T>(path: T, user_token_ids: &[String]) -> Self where
T: Into<String>, [src]
T: Into<String>,
pub fn new_basic256sha256_sign_encrypt<T>(
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>, [src]
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>,
pub fn new_aes128_sha256_rsaoaep_sign<T>(
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>, [src]
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>,
pub fn new_aes128_sha256_rsaoaep_sign_encrypt<T>(
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>, [src]
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>,
pub fn new_aes256_sha256_rsapss_sign<T>(
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>, [src]
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>,
pub fn new_aes256_sha256_rsapss_sign_encrypt<T>(
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>, [src]
path: T,
user_token_ids: &[String]
) -> Self where
T: Into<String>,
pub fn is_valid(
&self,
id: &str,
user_tokens: &BTreeMap<String, ServerUserToken>
) -> bool[src]
&self,
id: &str,
user_tokens: &BTreeMap<String, ServerUserToken>
) -> bool
pub fn security_policy(&self) -> SecurityPolicy[src]
pub fn message_security_mode(&self) -> MessageSecurityMode[src]
pub fn endpoint_url(&self, base_endpoint: &str) -> String[src]
pub fn password_security_policy(&self) -> SecurityPolicy[src]
Returns the effective password security policy for the endpoint. This is the explicitly set password security policy, or just the regular security policy.
pub fn supports_anonymous(&self) -> bool[src]
Test if the endpoint supports anonymous users
pub fn supports_user_pass(
&self,
server_tokens: &BTreeMap<String, ServerUserToken>
) -> bool[src]
&self,
server_tokens: &BTreeMap<String, ServerUserToken>
) -> bool
Tests if this endpoint supports user pass tokens. It does this by looking to see if any of the users allowed to access this endpoint are user pass users.
pub fn supports_x509(
&self,
server_tokens: &BTreeMap<String, ServerUserToken>
) -> bool[src]
&self,
server_tokens: &BTreeMap<String, ServerUserToken>
) -> bool
Tests if this endpoint supports x509 tokens. It does this by looking to see if any of the users allowed to access this endpoint are x509 users.
pub fn supports_user_token_id(&self, id: &str) -> bool[src]
Trait Implementations
impl Clone for ServerEndpoint[src]
fn clone(&self) -> ServerEndpoint[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ServerEndpoint[src]
impl<'de> Deserialize<'de> for ServerEndpoint[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl<'a> From<(&'a str, SecurityPolicy, MessageSecurityMode, &'a [&'a str])> for ServerEndpoint[src]
Convenience method to make an endpoint from a tuple
fn from(
v: (&'a str, SecurityPolicy, MessageSecurityMode, &'a [&'a str])
) -> ServerEndpoint[src]
v: (&'a str, SecurityPolicy, MessageSecurityMode, &'a [&'a str])
) -> ServerEndpoint
impl PartialEq<ServerEndpoint> for ServerEndpoint[src]
fn eq(&self, other: &ServerEndpoint) -> bool[src]
fn ne(&self, other: &ServerEndpoint) -> bool[src]
impl Serialize for ServerEndpoint[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralPartialEq for ServerEndpoint[src]
Auto Trait Implementations
impl RefUnwindSafe for ServerEndpoint
impl Send for ServerEndpoint
impl Sync for ServerEndpoint
impl Unpin for ServerEndpoint
impl UnwindSafe for ServerEndpoint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,