All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.nichetoolkit.rest.worker.jwt.JwtSigner Maven / Gradle / Ivy

The newest version!
package io.github.nichetoolkit.rest.worker.jwt;

import io.fusionauth.jwt.Signer;
import io.fusionauth.jwt.Verifier;
import io.fusionauth.jwt.domain.Algorithm;
import io.fusionauth.security.CryptoProvider;
import io.github.nichetoolkit.rest.RestAlgorithm;
import io.github.nichetoolkit.rest.error.lack.InterfaceLackError;

import java.nio.file.Path;
import java.security.PrivateKey;
import java.security.PublicKey;

/**
 * JwtSigner
 * 

The jwt signer interface.

* @author Cyan ([email protected]) * @see io.github.nichetoolkit.rest.RestAlgorithm * @since Jdk1.8 */ public interface JwtSigner extends RestAlgorithm { /** * signer *

The signer method.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see io.fusionauth.jwt.Signer */ default Signer signer() { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param secret byte

The secret parameter is byte type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see io.fusionauth.jwt.Signer */ default Signer signer(byte[] secret) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param secret {@link java.lang.String}

The secret parameter is String type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.lang.String * @see io.fusionauth.jwt.Signer */ default Signer signer(String secret) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param secret byte

The secret parameter is byte type.

* @param kid {@link java.lang.String}

The kid parameter is String type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.lang.String * @see io.fusionauth.jwt.Signer */ default Signer signer(byte[] secret, String kid) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param secret {@link java.lang.String}

The secret parameter is String type.

* @param kid {@link java.lang.String}

The kid parameter is String type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.lang.String * @see io.fusionauth.jwt.Signer */ default Signer signer(String secret, String kid) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param secret {@link java.lang.String}

The secret parameter is String type.

* @param cryptoProvider {@link io.fusionauth.security.CryptoProvider}

The crypto provider parameter is CryptoProvider type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.lang.String * @see io.fusionauth.security.CryptoProvider * @see io.fusionauth.jwt.Signer */ default Signer signer(String secret, CryptoProvider cryptoProvider) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param secret byte

The secret parameter is byte type.

* @param kid {@link java.lang.String}

The kid parameter is String type.

* @param cryptoProvider {@link io.fusionauth.security.CryptoProvider}

The crypto provider parameter is CryptoProvider type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.lang.String * @see io.fusionauth.security.CryptoProvider * @see io.fusionauth.jwt.Signer */ default Signer signer(byte[] secret, String kid, CryptoProvider cryptoProvider) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param secret {@link java.lang.String}

The secret parameter is String type.

* @param kid {@link java.lang.String}

The kid parameter is String type.

* @param cryptoProvider {@link io.fusionauth.security.CryptoProvider}

The crypto provider parameter is CryptoProvider type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.lang.String * @see io.fusionauth.security.CryptoProvider * @see io.fusionauth.jwt.Signer */ default Signer signer(String secret, String kid, CryptoProvider cryptoProvider) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param privateKey {@link java.security.PrivateKey}

The private key parameter is PrivateKey type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.security.PrivateKey * @see io.fusionauth.jwt.Signer */ default Signer signer(PrivateKey privateKey) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param privateKey {@link java.security.PrivateKey}

The private key parameter is PrivateKey type.

* @param kid {@link java.lang.String}

The kid parameter is String type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.security.PrivateKey * @see java.lang.String * @see io.fusionauth.jwt.Signer */ default Signer signer(PrivateKey privateKey, String kid) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param privateKey {@link java.security.PrivateKey}

The private key parameter is PrivateKey type.

* @param cryptoProvider {@link io.fusionauth.security.CryptoProvider}

The crypto provider parameter is CryptoProvider type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.security.PrivateKey * @see io.fusionauth.security.CryptoProvider * @see io.fusionauth.jwt.Signer */ default Signer signer(PrivateKey privateKey, CryptoProvider cryptoProvider) { throw new InterfaceLackError(); } /** * signer *

The signer method.

* @param privateKey {@link java.security.PrivateKey}

The private key parameter is PrivateKey type.

* @param kid {@link java.lang.String}

The kid parameter is String type.

* @param cryptoProvider {@link io.fusionauth.security.CryptoProvider}

The crypto provider parameter is CryptoProvider type.

* @return {@link io.fusionauth.jwt.Signer}

The signer return object is Signer type.

* @see java.security.PrivateKey * @see java.lang.String * @see io.fusionauth.security.CryptoProvider * @see io.fusionauth.jwt.Signer */ default Signer signer(PrivateKey privateKey, String kid, CryptoProvider cryptoProvider) { throw new InterfaceLackError(); } /** * verifier *

The verifier method.

* @return {@link io.fusionauth.jwt.Verifier}

The verifier return object is Verifier type.

* @see io.fusionauth.jwt.Verifier */ default Verifier verifier() { throw new InterfaceLackError(); } /** * verifier *

The verifier method.

* @param secret {@link java.lang.String}

The secret parameter is String type.

* @return {@link io.fusionauth.jwt.Verifier}

The verifier return object is Verifier type.

* @see java.lang.String * @see io.fusionauth.jwt.Verifier */ default Verifier verifier(String secret) { throw new InterfaceLackError(); } /** * verifier *

The verifier method.

* @param publicKey {@link java.security.PublicKey}

The public key parameter is PublicKey type.

* @return {@link io.fusionauth.jwt.Verifier}

The verifier return object is Verifier type.

* @see java.security.PublicKey * @see io.fusionauth.jwt.Verifier */ default Verifier verifier(PublicKey publicKey) { throw new InterfaceLackError(); } /** * verifier *

The verifier method.

* @param path {@link java.nio.file.Path}

The path parameter is Path type.

* @return {@link io.fusionauth.jwt.Verifier}

The verifier return object is Verifier type.

* @see java.nio.file.Path * @see io.fusionauth.jwt.Verifier */ default Verifier verifier(Path path) { throw new InterfaceLackError(); } /** * verifier *

The verifier method.

* @param bytes byte

The bytes parameter is byte type.

* @return {@link io.fusionauth.jwt.Verifier}

The verifier return object is Verifier type.

* @see io.fusionauth.jwt.Verifier */ default Verifier verifier(byte[] bytes) { throw new InterfaceLackError(); } /** * verifier *

The verifier method.

* @param secret {@link java.lang.String}

The secret parameter is String type.

* @param cryptoProvider {@link io.fusionauth.security.CryptoProvider}

The crypto provider parameter is CryptoProvider type.

* @return {@link io.fusionauth.jwt.Verifier}

The verifier return object is Verifier type.

* @see java.lang.String * @see io.fusionauth.security.CryptoProvider * @see io.fusionauth.jwt.Verifier */ default Verifier verifier(String secret, CryptoProvider cryptoProvider) { throw new InterfaceLackError(); } /** * verifier *

The verifier method.

* @param publicKey {@link java.security.PublicKey}

The public key parameter is PublicKey type.

* @param cryptoProvider {@link io.fusionauth.security.CryptoProvider}

The crypto provider parameter is CryptoProvider type.

* @return {@link io.fusionauth.jwt.Verifier}

The verifier return object is Verifier type.

* @see java.security.PublicKey * @see io.fusionauth.security.CryptoProvider * @see io.fusionauth.jwt.Verifier */ default Verifier verifier(PublicKey publicKey, CryptoProvider cryptoProvider) { throw new InterfaceLackError(); } /** * verifier *

The verifier method.

* @param path {@link java.nio.file.Path}

The path parameter is Path type.

* @param cryptoProvider {@link io.fusionauth.security.CryptoProvider}

The crypto provider parameter is CryptoProvider type.

* @return {@link io.fusionauth.jwt.Verifier}

The verifier return object is Verifier type.

* @see java.nio.file.Path * @see io.fusionauth.security.CryptoProvider * @see io.fusionauth.jwt.Verifier */ default Verifier verifier(Path path, CryptoProvider cryptoProvider) { throw new InterfaceLackError(); } /** * verifier *

The verifier method.

* @param bytes byte

The bytes parameter is byte type.

* @param cryptoProvider {@link io.fusionauth.security.CryptoProvider}

The crypto provider parameter is CryptoProvider type.

* @return {@link io.fusionauth.jwt.Verifier}

The verifier return object is Verifier type.

* @see io.fusionauth.security.CryptoProvider * @see io.fusionauth.jwt.Verifier */ default Verifier verifier(byte[] bytes, CryptoProvider cryptoProvider) { throw new InterfaceLackError(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy