[][src]Struct opcua_server::config::ServerEndpoint

pub struct ServerEndpoint {
    pub path: String,
    pub security_policy: String,
    pub security_mode: String,
    pub security_level: u8,
    pub password_security_policy: Option<String>,
    pub user_token_ids: BTreeSet<String>,
}

Fields

path: String

Endpoint path

security_policy: String

Security policy

security_mode: String

Security mode

security_level: u8

Security 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]

pub fn new_none<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic128rsa15_sign<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic128rsa15_sign_encrypt<T>(
    path: T,
    user_token_ids: &[String]
) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic256_sign<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic256_sign_encrypt<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic256sha256_sign<T>(path: T, user_token_ids: &[String]) -> Self where
    T: Into<String>, 
[src]

pub fn new_basic256sha256_sign_encrypt<T>(
    path: T,
    user_token_ids: &[String]
) -> Self where
    T: Into<String>, 
[src]

pub fn new_aes128_sha256_rsaoaep_sign<T>(
    path: T,
    user_token_ids: &[String]
) -> Self where
    T: Into<String>, 
[src]

pub fn new_aes128_sha256_rsaoaep_sign_encrypt<T>(
    path: T,
    user_token_ids: &[String]
) -> Self where
    T: Into<String>, 
[src]

pub fn new_aes256_sha256_rsapss_sign<T>(
    path: T,
    user_token_ids: &[String]
) -> Self where
    T: Into<String>, 
[src]

pub fn new_aes256_sha256_rsapss_sign_encrypt<T>(
    path: T,
    user_token_ids: &[String]
) -> Self where
    T: Into<String>, 
[src]

pub fn is_valid(
    &self,
    id: &str,
    user_tokens: &BTreeMap<String, ServerUserToken>
) -> bool
[src]

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]

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]

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]

impl Debug for ServerEndpoint[src]

impl<'de> Deserialize<'de> for ServerEndpoint[src]

impl<'a> From<(&'a str, SecurityPolicy, MessageSecurityMode, &'a [&'a str])> for ServerEndpoint[src]

Convenience method to make an endpoint from a tuple

impl PartialEq<ServerEndpoint> for ServerEndpoint[src]

impl Serialize for ServerEndpoint[src]

impl StructuralPartialEq for ServerEndpoint[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,