Skip to main content

is_valid_token

Function is_valid_token 

Source
pub fn is_valid_token(bytes: &[u8]) -> bool
Expand description

Returns true when raw token bytes can represent a configured or candidate Engine token.

Empty and UTF-8 whitespace-only values are invalid. Non-UTF-8 bytes are allowed so language runtimes can pass opaque credential bytes without losing information.