Behaviours: gss_mechanism.
message() = gss_mechanism:message()
oid() = tuple()
options() = #{mech_prefs => [oid()]} | gss_mechanism:general_options()
state() = gss_mechanism:state()
token() = gss_mechanism:token()
accept/2 | Begins a new GSS context as the acceptor (listening) party. |
continue/2 | Continues an initiate() or accept() operation with a new token from the other party. |
delete/1 | Destroys a GSS context, producing a token informing the other party (if the mechanism supports it). |
get_mic/2 | Computes a MIC (Message Integrity Check) token for a given message. |
initiate/1 | Begins a new GSS context as the initiator (connecting) party. |
local_name/1 | Retrieves the local party's name in the GSS context. |
mech_specific/4 | Used to call a mechanism-specific method against the internal state of the mechanism SPNEGO negotiated. |
peer_name/1 | Retrieves the remote (peer) party's authenticated name in the GSS context. |
translate_name/2 | Translates a name into a more useful generalised form. |
unwrap/2 | Validates and unpacks a Wrap token which has been received, returning the enclosed message. |
verify_mic/3 | Verifies a MIC token which has been received alongside the given message. |
wrap/2 | Wraps a message into a token, which may encrypt and checksum it as needed (depending on mechanism and the options given). |
accept(Token::token(), Opts::options()) -> {ok, token(), state()} | {continue, token(), state()} | {ok, state()} | gss_mechanism:fatal_error()
Begins a new GSS context as the acceptor (listening) party.
If returning {ok, token(), state()}
, then the token
is the last token in the setup flow (and after transporting it to the
initiator, applications should begin calling get_mic/2
and
wrap/2
).
{continue, token(), state()}
, the mechanism expects
a reply to the given token first, which should be given to
continue/2
.
continue(Token::token(), S0::state()) -> {ok, token(), state()} | {continue, token(), state()} | {ok, state()} | gss_mechanism:fatal_error()
Continues an initiate() or accept() operation with a new token from the other party.
Return values have the same meaning as ininitiate/1
or
accept/2
.
delete(X1::state()) -> {ok, token()} | ok | gss_mechanism:fatal_error()
Destroys a GSS context, producing a token informing the other party (if the mechanism supports it).
get_mic(Message::message(), S0::state()) -> {ok, token(), state()} | gss_mechanism:fatal_error()
Computes a MIC (Message Integrity Check) token for a given message.
A MIC token should be transported to the other party alongside the message so that they may check its integrity (the token does not contain the message).initiate(Opts::options()) -> {ok, token(), state()} | {continue, token(), state()} | {ok, state()} | gss_mechanism:fatal_error()
Begins a new GSS context as the initiator (connecting) party.
If returning {ok, token(), state()}
, then the token
is the last token in the setup flow (and after transporting it to the
acceptor, applications should begin calling get_mic/2
and
wrap/2
).
{continue, token(), state()}
, the mechanism expects
a reply to the given token first, which should be given to
continue/2
.
local_name(X1::state()) -> {ok, gss_mechanism:internal_name()} | {error, not_yet_available}
Retrieves the local party's name in the GSS context.
mech_specific(Mod::module(), Fun::function(), Args::[term()], S0::gss_mechanism:state()) -> {ok, gss_mechanism:state()} | {ok, term(), gss_mechanism:state()} | gss_mechanism:fatal_error()
Used to call a mechanism-specific method against the internal state of the mechanism SPNEGO negotiated.
peer_name(X1::state()) -> {ok, gss_mechanism:internal_name()} | {error, not_yet_available}
Retrieves the remote (peer) party's authenticated name in the GSS context.
translate_name(Name::gss_mechanism:internal_name(), Oid::gss_mechanism:oid() | any) -> {ok, gss_mechanism:display_name()} | {error, bad_name} | {error, bad_target_oid}
Translates a name into a more useful generalised form.
unwrap(Token::token(), S0::state()) -> {ok, message(), state()} | gss_mechanism:per_msg_error() | gss_mechanism:fatal_error()
Validates and unpacks a Wrap token which has been received, returning the enclosed message.
verify_mic(Message::message(), Token::token(), S0::state()) -> {ok, state()} | gss_mechanism:per_msg_error() | gss_mechanism:fatal_error()
Verifies a MIC token which has been received alongside the given message.
wrap(Message::message(), S0::state()) -> {ok, token(), state()} | gss_mechanism:fatal_error()
Wraps a message into a token, which may encrypt and checksum it as needed (depending on mechanism and the options given).
A Wrap Token should be transported to the other party without any additional information.Generated by EDoc