Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121379454
SigningKeyResolverBridge.java
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 10, 10:23
Size
597 B
Mime Type
text/x-java
Expires
Sat, Jul 12, 10:23 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27317679
Attached To
R2664 SHRINE MedCo Fork
SigningKeyResolverBridge.java
View Options
package
net.shrine.dashboard.jwtauth
;
import
io.jsonwebtoken.Claims
;
import
io.jsonwebtoken.JwsHeader
;
import
io.jsonwebtoken.SigningKeyResolverAdapter
;
import
java.security.Key
;
/**
* SigningKeyResolverBridge is in Java because JwsHeader takes a parameter, but SigningKeyResolverAdapter specifies it as a raw type.
*
* @author david
* @since 1.21
*/
public
class
SigningKeyResolverBridge
extends
SigningKeyResolverAdapter
{
public
Key
resolveSigningKey
(
JwsHeader
header
,
Claims
claims
)
{
String
keyId
=
header
.
getKeyId
();
return
KeySource
.
keyForString
(
keyId
);
}
}
Event Timeline
Log In to Comment