public void setKeyPair(final KeyPair keyPair) {
        CommonHelper.assertNotNull("keyPair", keyPair);
        this.privateKey = (RSAPrivateKey) keyPair.getPrivate();
        this.publicKey = (RSAPublicKey) keyPair.getPublic();
    }
<p>setKeyPair.</p>

@param keyPair a {@link KeyPair} object
pac4j-jwt/src/main/java/org/pac4j/jwt/config/signature/RSASignatureConfiguration.java