/** * Creates a new JWS verification key selector. * * @param jwsAlg The expected JWS algorithm for the objects to be * verified. Must not be {@code null}. */ public DelegateSelectorFactory(JWSAlgorithm jwsAlg) { super(jwsAlg, (jwkSelector, context) -> { throw new KeySourceException("JWKSelectorFactory is only intended for creating a selector"); }); }
/** * Creates a new JWS verification key selector. * * @param jwsAlg The expected JWS algorithm for the objects to be * verified. Must not be {@code null}. */ public DelegateSelectorFactory(JWSAlgorithm jwsAlg) { super(jwsAlg, (jwkSelector, context) -> { throw new KeySourceException("JWKSelectorFactory is only intended for creating a selector"); }); }
throw new KeySourceException("RS256 algorithm not specified");