T
- a concrete implementation of CryptoMaterial
.public interface CryptoMaterialReceiver<T extends CryptoMaterial>
CryptoMaterialProvider.provide(CryptoMaterialReceiver)
.Modifier and Type | Method and Description |
---|---|
void |
cancel()
Tells the receiving object, that the provider cancelled the crypto material request.
|
boolean |
receive(T cryptoMaterial)
Receive
CryptoMaterial to authenticate for access the highest possible
AuthLevel . |
boolean |
receive(T cryptoMaterial,
AuthLevel requestedLevel)
Receive
CryptoMaterial to authenticate for access on a specific AuthLevel . |
boolean receive(T cryptoMaterial)
CryptoMaterial
to authenticate for access the highest possible
AuthLevel
.
Gives the receiving object the crypto material it requests. Should check all provided data
necessary to get ready for decryption (or encryption). If the provided data is not sufficient,
the implementation should return false
otherwise true
.
cryptoMaterial
- holds the credentials to be used for authenticationtrue
if given crypto material was sufficient and accepted, false
if not.boolean receive(T cryptoMaterial, AuthLevel requestedLevel)
CryptoMaterial
to authenticate for access on a specific AuthLevel
.
Gives the receiving object the crypto material it requests. Should check all provided data
necessary to get ready for decryption (or encryption). If the provided data is not sufficient,
the implementation should return false
otherwise true
.
cryptoMaterial
- holds the credentials to be used for authenticationrequestedLevel
- the level of access which is requested. If the given
CryptoMaterial
would give access to a lower AuthLevel
, this method
still returns false
.true
if given crypto material was sufficient and accepted, false
if not.void cancel()
Copyright © 2024 levigo holding gmbh. All rights reserved.