---
name: "Authen::U2F::Tester::Keypair"
section: "3pm"
platform: "linux"
package: "libauthen-u2f-tester-perl"
version: "0.03-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Authen::U2F::Tester::Keypair"
---

# Authen::U2F::Tester::Keypair(3pm)

Authen::U2F::Tester Keypair Object

## NAME

Authen::U2F::Tester::Keypair - Authen::U2F::Tester Keypair Object

## VERSION

version 0.03

## SYNOPSIS

```
 my $keypair = Authen::U2F::Tester::Keypair->new;
 # private key in DER format
 my $private_key = $keypair->private_key;
 # public key in DER format
 my $public_key = $keypair->public_key;
 print $keypair->handle;
```

## DESCRIPTION

This module manages Crypt::PK::ECC keypairs for Authen::U2F::Tester.

## METHODS

### *new()*

### new($keypair)

Construct a new keypair object.  A Crypt::PK::ECC object can be passed to the constructor.  Otherwise a new keypair will be generated on demand.

### *keypair()*: Crypt::PK::ECC

Gets the keypair for this object.  If a keypair was not passed to the constructor, a new key will be generated.

### *public\_key()*: scalar

Get the public key (in `"DER"` format) for this keypair.

### *private\_key()*: scalar

Get the private key (in `"DER"` format) for this keypair.

## SOURCE

The development version is on github at \<http://https://github.com/mschout/perl-authen-u2f-tester\> and may be cloned from \<git://https://github.com/mschout/perl-authen-u2f-tester.git\>

## BUGS

Please report any bugs or feature requests on the bugtracker website \<https://github.com/mschout/perl-authen-u2f-tester/issues\>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

## AUTHOR

Michael Schout \<mschout@cpan.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Michael Schout.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
