Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79286731
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
Sun, Aug 25, 15:54
Size
597 B
Mime Type
text/x-java
Expires
Tue, Aug 27, 15:54 (2 d)
Engine
blob
Format
Raw Data
Handle
20152094
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