Skip to content

Commit

Permalink
Working
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdan committed Aug 25, 2023
1 parent 6417f1b commit ba097e3
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/fusionauth/jwt/eddsa/EdDSA.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, FusionAuth, All Rights Reserved
* Copyright (c) 2022-2023, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/fusionauth/jwt/eddsa/EdDSAKeyDecoder.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, FusionAuth, All Rights Reserved
* Copyright (c) 2022-2023, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/io/fusionauth/jwt/eddsa/EdDSASigner.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
import io.fusionauth.security.CryptoProvider;
import io.fusionauth.security.DefaultCryptoProvider;

/**
* @author Daniel DeGroff
*/
public class EdDSASigner implements Signer {
private final Algorithm algorithm;

Expand Down
5 changes: 4 additions & 1 deletion src/main/java/io/fusionauth/jwt/eddsa/EdDSAVerifier.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, FusionAuth, All Rights Reserved
* Copyright (c) 2022-2023, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,6 +37,9 @@
import io.fusionauth.security.CryptoProvider;
import io.fusionauth.security.DefaultCryptoProvider;

/**
* @author Daniel DeGroff
*/
public class EdDSAVerifier implements Verifier {
private final CryptoProvider cryptoProvider;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
/*
* Copyright (c) 2023, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*/
package io.fusionauth.jwt.eddsa.provider;

import io.fusionauth.jwt.domain.Algorithm;
import io.fusionauth.jwt.eddsa.EdDSA;
import io.fusionauth.jwt.spi.AlgorithmProvider;

/**
* @author Daniel DeGroff
*/
public class EdDSAAlgorithmProvider implements AlgorithmProvider {
@Override
public Algorithm get() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
/*
* Copyright (c) 2023, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*/
package io.fusionauth.jwt.eddsa.provider;

import io.fusionauth.jwt.eddsa.EdDSAKeyDecoder;
import io.fusionauth.jwt.spi.KeyDecoderProvider;
import io.fusionauth.pem.KeyDecoder;

/**
* @author Daniel DeGroff
*/
public class EdDSAKeyDecoderProvider implements KeyDecoderProvider {
@Override
public KeyDecoder get() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
/*
* Copyright (c) 2023, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*/
package io.fusionauth.jwt.eddsa.provider;

import io.fusionauth.jwt.domain.KeyType;
import io.fusionauth.jwt.eddsa.EdDSA;
import io.fusionauth.jwt.spi.KeyTypeProvider;

/**
* @author Daniel DeGroff
*/
public class EdDSAKeyTypeProvider implements KeyTypeProvider {
@Override
public KeyType get() {
Expand Down

0 comments on commit ba097e3

Please sign in to comment.