public class KeyIdByFileRecipientRepository extends java.lang.Object implements RecipientRepository
Constructor and Description |
---|
KeyIdByFileRecipientRepository(RecipientKeyManager recipientKeyManager) |
Modifier and Type | Method and Description |
---|---|
org.jose4j.jwk.JsonWebKey |
findRecipientKey(TokenContext context,
java.lang.String subject)
Method to fetch a public key for a given recipients subject.
|
public KeyIdByFileRecipientRepository(RecipientKeyManager recipientKeyManager)
public org.jose4j.jwk.JsonWebKey findRecipientKey(TokenContext context, java.lang.String subject) throws TokenException, java.io.IOException, InternalErrorException
findRecipientKey
in interface RecipientRepository
subject
- the subject of the recipient.context
- the related token context.TokenException
- if subject's key couldn't be found.java.io.IOException
- if communication problems occurred with underlying components.InternalErrorException
- if internal errors occurred retrieving the public key.