trait MAuthDirectives extends StrictLogging
- Alphabetic
- By Inheritance
- MAuthDirectives
- StrictLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
authenticate(implicit authenticator: scaladsl.Authenticator[Future], timeout: FiniteDuration, requestValidationTimeout: Duration): Directive0
Directive to wrap all routes that require MAuth authentication check.
Directive to wrap all routes that require MAuth authentication check. Should only be used once per route branch, as any HttpEntity is forced to be strict, and serialised into the request.
- authenticator
MAuth Public Key Provider
- timeout
request timeout duration, defaults to 10 seconds
- requestValidationTimeout
request validation timeout duration, defaults to 10 seconds
- returns
Directive to authenticate the request
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
extractLatestAuthenticationHeaders(v2OnlyAuthenticate: Boolean): Directive1[MauthHeaderValues]
Extracts the authentication header value of the HTTP request header for latest version of Mauth
Extracts the authentication header value of the HTTP request header for latest version of Mauth
- v2OnlyAuthenticate
the flag to specify if Mauth V2 only authenticate or not. If Mauth v2 only authenticate is enabled, extracts the authentication header of MCC-Authentication only. Otherwise, extracts the authentication header of X-MWS-Authentication if MCC-Authentication header is not found.
- returns
Directive1[MauthHeaderValues] of Mauth authentication header values for V1 or V2 the request is rejected with a MdsolAuthMissingHeaderRejection if the expected header is not present
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def headerValueByTypeMdsol[T](magnet: HeaderMagnet[T]): Directive1[T]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
val
extractMAuthHeader: Directive1[AuthHeaderDetail]
Extracts the detail information of the HTTP request header X-MWS-Authentication
Extracts the detail information of the HTTP request header X-MWS-Authentication
- returns
Directive1[AuthHeaderDetail] of Mauth V1 protocol If invalidated, the request is rejected with a MalformedHeaderRejection.
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0) This method is for Mauth V1 protocol only
-
val
extractMwsAuthenticationHeader: Directive1[String]
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0) This method is for Mauth V1 protocol only
-
val
extractMwsTimeHeader: Directive1[Long]
Extracts the validated value of the HTTP request header X-MWS-Time
Extracts the validated value of the HTTP request header X-MWS-Time
- returns
Directive1[Long] of Mauth V1 protocol If invalidated, the request is rejected with a MalformedHeaderRejection.
- Annotations
- @deprecated
- Deprecated
(Since version 3.0.0) This method is for Mauth V1 protocol only
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated
- Deprecated