diff --git a/ballerina/jwt_issuer.bal b/ballerina/jwt_issuer.bal index 858b8172..4d05cf7e 100644 --- a/ballerina/jwt_issuer.bal +++ b/ballerina/jwt_issuer.bal @@ -41,7 +41,7 @@ public type IssuerConfig record {| # Represents JWT signature configurations. # # + algorithm - Cryptographic signing algorithm for JWS -# + config - KeyStore configurations, private key configurations or shared key configurations +# + config - KeyStore configurations, private key configurations, `crypto:PrivateKey` or shared key configurations public type IssuerSignatureConfig record {| SigningAlgorithm algorithm = RS256; record {| diff --git a/ballerina/jwt_validator.bal b/ballerina/jwt_validator.bal index 76fea9ae..de838441 100644 --- a/ballerina/jwt_validator.bal +++ b/ballerina/jwt_validator.bal @@ -48,7 +48,7 @@ public type ValidatorConfig record { # Represents JWT signature configurations. # # + jwksConfig - JWKS configurations -# + certFile - Public certificate file +# + certFile - Public certificate file or a `crypto:PublicKey` # + trustStoreConfig - JWT TrustStore configurations # + secret - HMAC secret configuration public type ValidatorSignatureConfig record {|