public interface RecipientRepository
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.
|
org.jose4j.jwk.JsonWebKey findRecipientKey(TokenContext context, java.lang.String subject) throws TokenException, java.io.IOException, InternalErrorException
context
- the related token context.subject
- the subject of the recipient.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.