-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to support metadata service v3 (#33)
Resolved #11
- Loading branch information
Showing
40 changed files
with
1,221 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...on/src/main/java/com/linecorp/line/auth/fido/fido2/common/mdsv3/AuthenticatorGetInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* Copyright 2022 LINE Corporation | ||
* | ||
* LINE Corporation licenses this file to you 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: | ||
* | ||
* https://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 com.linecorp.line.auth.fido.fido2.common.mdsv3; | ||
|
||
import com.linecorp.line.auth.fido.fido2.common.PublicKeyCredentialParameters; | ||
import lombok.Data; | ||
|
||
import java.math.BigInteger; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
@Data | ||
public class AuthenticatorGetInfo { | ||
private List<String> versions; | ||
private List<String> extensions; | ||
private String aaguid; | ||
private Map options; | ||
private BigInteger maxMsgSize; | ||
|
||
private List<Long> pinUvAuthProtocols; | ||
private BigInteger maxCredentialCountInList; | ||
private BigInteger maxCredentialIdLength; | ||
private List<String> transports; | ||
private List<PublicKeyCredentialParameters> algorithms; | ||
|
||
private BigInteger maxSerializedLargeBlobArray; | ||
private Boolean forcePINChange; | ||
private BigInteger minPINLength; | ||
private BigInteger firmwareVersion; | ||
private BigInteger maxCredBlobLength; | ||
|
||
private BigInteger maxRPIDsForSetMinPINLength; | ||
private BigInteger preferredPlatformUvAttempts; | ||
private BigInteger uvModality; | ||
private Map certifications; | ||
private BigInteger remainingDiscoverableCredentials; | ||
|
||
private List<BigInteger> vendorPrototypeConfigCommands; | ||
} |
35 changes: 35 additions & 0 deletions
35
common/src/main/java/com/linecorp/line/auth/fido/fido2/common/mdsv3/AuthenticatorStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright 2022 LINE Corporation | ||
* | ||
* LINE Corporation licenses this file to you 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: | ||
* | ||
* https://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 com.linecorp.line.auth.fido.fido2.common.mdsv3; | ||
|
||
public enum AuthenticatorStatus { | ||
NOT_FIDO_CERTIFIED, | ||
FIDO_CERTIFIED, | ||
USER_VERIFICATION_BYPASS, | ||
ATTESTATION_KEY_COMPROMISE, | ||
USER_KEY_REMOTE_COMPROMISE, | ||
USER_KEY_PHYSICAL_COMPROMISE, | ||
UPDATE_AVAILABLE, | ||
REVOKED, | ||
SELF_ASSERTION_SUBMITTED, | ||
FIDO_CERTIFIED_L1, | ||
FIDO_CERTIFIED_L1plus, | ||
FIDO_CERTIFIED_L2, | ||
FIDO_CERTIFIED_L2plus, | ||
FIDO_CERTIFIED_L3, | ||
FIDO_CERTIFIED_L3plus | ||
} |
28 changes: 28 additions & 0 deletions
28
common/src/main/java/com/linecorp/line/auth/fido/fido2/common/mdsv3/MetadataBLOBPayload.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2022 LINE Corporation | ||
* | ||
* LINE Corporation licenses this file to you 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: | ||
* | ||
* https://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 com.linecorp.line.auth.fido.fido2.common.mdsv3; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.List; | ||
@Data | ||
public class MetadataBLOBPayload { | ||
private String legalHeader; | ||
private Long no; | ||
private String nextUpdate; | ||
private List<MetadataBLOBPayloadEntry> entries; | ||
} |
37 changes: 37 additions & 0 deletions
37
...rc/main/java/com/linecorp/line/auth/fido/fido2/common/mdsv3/MetadataBLOBPayloadEntry.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* Copyright 2022 LINE Corporation | ||
* | ||
* LINE Corporation licenses this file to you 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: | ||
* | ||
* https://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 com.linecorp.line.auth.fido.fido2.common.mdsv3; | ||
|
||
import com.linecorp.line.auth.fido.fido2.common.mdsv3.metadata.BiometricStatusReport; | ||
import com.linecorp.line.auth.fido.fido2.common.mdsv3.metadata.MetadataStatement; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
public class MetadataBLOBPayloadEntry { | ||
private String aaid; | ||
private String aaguid; | ||
private List<String> attestationCertificateKeyIdentifiers; | ||
private MetadataStatement metadataStatement; | ||
private List<BiometricStatusReport> biometricStatusReports; | ||
|
||
private List<StatusReport> statusReports; | ||
private String timeOfLastStatusChange; | ||
private String rogueListURL; | ||
private StringBuilder rogueListHash; | ||
} |
32 changes: 32 additions & 0 deletions
32
common/src/main/java/com/linecorp/line/auth/fido/fido2/common/mdsv3/StatusReport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright 2022 LINE Corporation | ||
* | ||
* LINE Corporation licenses this file to you 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: | ||
* | ||
* https://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 com.linecorp.line.auth.fido.fido2.common.mdsv3; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class StatusReport { | ||
private AuthenticatorStatus status; | ||
private Long authenticatorVersion; | ||
private String effectiveDate; | ||
private String certificate; | ||
private String url; | ||
private String certificationDescriptor; | ||
private String certificateNumber; | ||
private String certificationPolicyVersion; | ||
private String certificationRequirementsVersion; | ||
} |
32 changes: 32 additions & 0 deletions
32
.../com/linecorp/line/auth/fido/fido2/common/mdsv3/metadata/BiometricAccuracyDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright 2022 LINE Corporation | ||
* | ||
* LINE Corporation licenses this file to you 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: | ||
* | ||
* https://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 com.linecorp.line.auth.fido.fido2.common.mdsv3.metadata; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class BiometricAccuracyDescriptor { | ||
private Double selfAttestedFRR; | ||
private Double selfAttestedFAR; | ||
private Integer maxTemplates; | ||
private Integer maxRetries; | ||
private Integer blockSlowdown; | ||
} |
30 changes: 30 additions & 0 deletions
30
...n/java/com/linecorp/line/auth/fido/fido2/common/mdsv3/metadata/BiometricStatusReport.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* | ||
* Copyright 2022 LINE Corporation | ||
* | ||
* LINE Corporation licenses this file to you 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: | ||
* | ||
* https://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 com.linecorp.line.auth.fido.fido2.common.mdsv3.metadata; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class BiometricStatusReport { | ||
Integer certLevel; | ||
String modality; | ||
String effectiveDate; | ||
String certificationDescriptor; | ||
String certificateNumber; | ||
String certificationPolicyVersion; | ||
String certificationRequirementsVersion; | ||
} |
31 changes: 31 additions & 0 deletions
31
.../java/com/linecorp/line/auth/fido/fido2/common/mdsv3/metadata/CodeAccuracyDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright 2022 LINE Corporation | ||
* | ||
* LINE Corporation licenses this file to you 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: | ||
* | ||
* https://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 com.linecorp.line.auth.fido.fido2.common.mdsv3.metadata; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class CodeAccuracyDescriptor { | ||
private Integer base; | ||
private Integer minLength; | ||
private Integer maxRetries; | ||
private Integer blockSlowdown; | ||
} |
33 changes: 33 additions & 0 deletions
33
...ecorp/line/auth/fido/fido2/common/mdsv3/metadata/DisplayPNGCharacteristicsDescriptor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright 2022 LINE Corporation | ||
* | ||
* LINE Corporation licenses this file to you 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: | ||
* | ||
* https://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 com.linecorp.line.auth.fido.fido2.common.mdsv3.metadata; | ||
|
||
import lombok.Data; | ||
|
||
import java.math.BigInteger; | ||
|
||
@Data | ||
public class DisplayPNGCharacteristicsDescriptor { | ||
private BigInteger width; //unsigned long | ||
private BigInteger height; //unsigned long | ||
private Integer bitDepth; | ||
private Short colorType; | ||
private Short compression; | ||
private Short filter; | ||
private Short interlace; | ||
private RgbPaletteEntry[] plte; | ||
} |
Oops, something went wrong.