pub mod ca;
pub mod delegation_token;
#[cfg(not(target_family = "wasm"))]
pub mod gssapi;
pub mod java_regex;
mod jwks;
mod jwks_trust;
mod listener;
mod mechanism;
mod mtls;
mod oauthbearer;
mod plain;
mod principal;
mod reload;
pub mod scram;
mod tls;
pub use delegation_token::{SecretBytes, compute_token_hmac};
pub use jwks::{Jwks, JwksHandle};
pub use jwks_trust::{JwksTrustError, build_client_config_from_pem};
pub use listener::ListenerProtocol;
pub use mechanism::SaslMechanism;
pub use mtls::extract_principal_from_cert;
pub use oauthbearer::{
AuthOutcome, ClientInitialResponse, IntrospectionClient, IntrospectionError,
IntrospectionValidator, InvalidScopeItem, OAuthBearerValidator, SignedJwsValidator,
UnsecuredJwsValidator, oauth_error_json, parse_client_initial_response, parse_required_scope,
};
pub use plain::verify_plain;
pub use principal::{AuthError, AuthMethod, KafkaPrincipal, Principal};
pub use reload::DynamicServerConfig;
pub use scram::{
ScramClientExchange, ScramClientFirst, ScramCredential, ScramServerExchange, StepResult,
TOKEN_AUTH_EXTENSION, decode_saslname, derive_keys_from_salted, encode_saslname,
hash_scram_password, pbkdf2_salted, scram_hash_len,
};
pub use tls::{ClientAuthMode, TlsConfig, TlsError};