quasar
.
precog
.
common
.
security
InMemoryAPIKeyManager
Related Doc:
package security
class
InMemoryAPIKeyManager
[
M
[
+_
]
]
extends
APIKeyManager
[
M
]
Linear Supertypes
APIKeyManager
[
M
],
Logging
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
InMemoryAPIKeyManager
APIKeyManager
Logging
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
InMemoryAPIKeyManager
(
clock:
Clock
)
(
implicit
M:
Monad
[
M
]
)
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
implicit
val
M
:
Monad
[
M
]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
addGrants
(
apiKey:
APIKey
,
grants:
Set
[
GrantId
]
)
:
M
[
Option
[
APIKeyRecord
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
val
apiKeys
:
HashMap
[
String
,
APIKeyRecord
]
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
close
()
:
M
[
Unit
]
def
createAPIKey
(
name:
Option
[
String
]
,
description:
Option
[
String
]
,
issuerKey:
APIKey
,
grants:
Set
[
GrantId
]
)
:
M
[
APIKeyRecord
]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
createGrant
(
name:
Option
[
String
]
,
description:
Option
[
String
]
,
issuerKey:
APIKey
,
parentIds:
Set
[
GrantId
]
,
perms:
Set
[
Permission
]
,
expiration:
Option
[
LocalDateTime
]
)
:
M
[
Grant
]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
deleteAPIKey
(
apiKey:
APIKey
)
:
M
[
Option
[
APIKeyRecord
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
deleteGrant
(
gid:
GrantId
)
:
M
[
Set
[
Grant
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
deriveAndAddGrant
(
name:
Option
[
String
]
,
description:
Option
[
String
]
,
issuerKey:
APIKey
,
perms:
Set
[
Permission
]
,
recipientKey:
APIKey
,
expiration:
Option
[
LocalDateTime
] =
None
)
:
M
[
Option
[
Grant
]]
Definition Classes
APIKeyManager
def
deriveGrant
(
name:
Option
[
String
]
,
description:
Option
[
String
]
,
issuerKey:
APIKey
,
perms:
Set
[
Permission
]
,
expiration:
Option
[
LocalDateTime
] =
None
)
:
M
[
Option
[
Grant
]]
Definition Classes
APIKeyManager
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
def
findAPIKey
(
apiKey:
APIKey
)
:
M
[
Option
[
APIKeyRecord
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
findAPIKeyAncestry
(
apiKey:
APIKey
)
:
M
[
List
[
APIKeyRecord
]]
Definition Classes
APIKeyManager
def
findAPIKeyChildren
(
parent:
APIKey
)
:
M
[
Set
[
APIKeyRecord
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
findDeletedAPIKey
(
apiKey:
APIKey
)
:
M
[
Option
[
APIKeyRecord
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
findDeletedGrant
(
gid:
GrantId
)
:
M
[
Option
[
Grant
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
findDeletedGrantChildren
(
gid:
GrantId
)
:
M
[
Set
[
Grant
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
findGrant
(
gid:
GrantId
)
:
M
[
Option
[
Grant
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
findGrantChildren
(
gid:
GrantId
)
:
M
[
Set
[
Grant
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
findValidGrant
(
grantId:
GrantId
,
at:
Option
[
LocalDateTime
] =
None
)
:
M
[
Option
[
Grant
]]
Definition Classes
APIKeyManager
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
val
grants
:
HashMap
[
String
,
Grant
]
def
hasCapability
(
apiKey:
APIKey
,
perms:
Set
[
Permission
]
,
at:
Option
[
LocalDateTime
] =
None
)
:
M
[
Boolean
]
Definition Classes
APIKeyManager
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
listAPIKeys
()
:
M
[
List
[
APIKeyRecord
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
listDeletedAPIKeys
()
:
M
[
List
[
APIKeyRecord
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
listDeletedGrants
()
:
M
[
List
[
Grant
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
listGrants
()
:
M
[
List
[
Grant
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
val
log
:
Logger
Attributes
protected
Definition Classes
Logging
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
newAPIKeyWithGrants
(
name:
Option
[
String
]
,
description:
Option
[
String
]
,
issuerKey:
APIKey
,
grants:
Set
[
NewGrantRequest
]
)
:
M
[
Option
[
APIKeyRecord
]]
Definition Classes
APIKeyManager
def
newStandardAPIKeyRecord
(
accountId:
AccountId
,
name:
Option
[
String
] =
None
,
description:
Option
[
String
] =
None
)
:
M
[
APIKeyRecord
]
Definition Classes
APIKeyManager
def
newStandardAccountGrant
(
accountId:
AccountId
,
path:
Path
,
name:
Option
[
String
] =
None
,
description:
Option
[
String
] =
None
)
:
M
[
Grant
]
Definition Classes
APIKeyManager
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
def
removeGrants
(
apiKey:
APIKey
,
grants:
Set
[
GrantId
]
)
:
M
[
Option
[
APIKeyRecord
]]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
def
rootAPIKey
:
M
[
APIKey
]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
val
rootAPIKeyRecord
:
APIKeyRecord
def
rootGrantId
:
M
[
GrantId
]
Definition Classes
InMemoryAPIKeyManager
→
APIKeyManager
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
validGrants
(
apiKey:
APIKey
,
at:
Option
[
LocalDateTime
] =
None
)
:
M
[
Set
[
Grant
]]
Definition Classes
APIKeyManager
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
APIKeyManager
[
M
]
Inherited from
Logging
Inherited from
AnyRef
Inherited from
Any
Ungrouped