| 1 | ## Domain Registry Interface, EURid (.EU) policy on reserved names | ||||||||||
| 2 | ## | ||||||||||
| 3 | ## Copyright (c) 2005-2011 Patrick Mevzek <netdri@dotandco.com>. All rights reserved. | ||||||||||
| 4 | ## 2014 Michael Kefeder <michael.kefeder@world4you.com>. All rights reserved. | ||||||||||
| 5 | ## | ||||||||||
| 6 | ## This file is part of Net::DRI | ||||||||||
| 7 | ## | ||||||||||
| 8 | ## Net::DRI is free software; you can redistribute it and/or modify | ||||||||||
| 9 | ## it under the terms of the GNU General Public License as published by | ||||||||||
| 10 | ## the Free Software Foundation; either version 2 of the License, or | ||||||||||
| 11 | ## (at your option) any later version. | ||||||||||
| 12 | ## | ||||||||||
| 13 | ## See the LICENSE file that comes with this distribution for more details. | ||||||||||
| 14 | ######################################################################################### | ||||||||||
| 15 | |||||||||||
| 16 | package Net::DRI::DRD::EURid; | ||||||||||
| 17 | |||||||||||
| 18 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 20 | |||||||||||
| 21 | 1 | ▶ | use base qw/Net::DRI::DRD/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | |||||||||||
| 23 | 1 | ▶ | use Net::DRI::Util; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | 1 | ▶ | use Net::DRI::Exception; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 25 | 1 | ▶ | use DateTime::Duration; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 26 | |||||||||||
| 27 | 1 | __PACKAGE__->make_exception_for_unavailable_operations(qw/domain_transfer_accept domain_transfer_refuse domain_transfer_stop contact_check contact_transfer contact_transfer_start contact_transfer_stop contact_transfer_query contact_transfer_accept contact_transfer_refuse/); | |||||||||
| 28 | |||||||||||
| 29 | =pod | ||||||||||
| 30 | |||||||||||
| 31 | =head1 NAME | ||||||||||
| 32 | |||||||||||
| 33 | Net::DRI::DRD::EURid - EURid (.EU) policies for Net::DRI | ||||||||||
| 34 | |||||||||||
| 35 | =head1 DESCRIPTION | ||||||||||
| 36 | |||||||||||
| 37 | Please see the README file for details. | ||||||||||
| 38 | |||||||||||
| 39 | =head1 SUPPORT | ||||||||||
| 40 | |||||||||||
| 41 | For now, support questions should be sent to: | ||||||||||
| 42 | |||||||||||
| 43 | E<lt>netdri@dotandco.comE<gt> | ||||||||||
| 44 | |||||||||||
| 45 | Please also see the SUPPORT file in the distribution. | ||||||||||
| 46 | |||||||||||
| 47 | =head1 SEE ALSO | ||||||||||
| 48 | |||||||||||
| 49 | E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt> | ||||||||||
| 50 | |||||||||||
| 51 | =head1 AUTHOR | ||||||||||
| 52 | |||||||||||
| 53 | Patrick Mevzek, E<lt>netdri@dotandco.comE<gt> | ||||||||||
| 54 | |||||||||||
| 55 | =head1 COPYRIGHT | ||||||||||
| 56 | |||||||||||
| 57 | Copyright (c) 2005-2011 Patrick Mevzek <netdri@dotandco.com>. | ||||||||||
| 58 | 2014 Michael Kefeder <michael.kefeder@world4you.com>. | ||||||||||
| 59 | All rights reserved. | ||||||||||
| 60 | |||||||||||
| 61 | This program is free software; you can redistribute it and/or modify | ||||||||||
| 62 | it under the terms of the GNU General Public License as published by | ||||||||||
| 63 | the Free Software Foundation; either version 2 of the License, or | ||||||||||
| 64 | (at your option) any later version. | ||||||||||
| 65 | |||||||||||
| 66 | See the LICENSE file that comes with this distribution for more details. | ||||||||||
| 67 | |||||||||||
| 68 | =cut | ||||||||||
| 69 | |||||||||||
| 70 | ##################################################################################### | ||||||||||
| 71 | |||||||||||
| 72 | 1 | our %CCA2_EU=map { $_ => 1 } qw/AT BE BG CZ CY DE DK ES EE FI FR GR GB HU IE IT LT LU LV MT NL PL PT RO SE SK SI AX GF GI GP MQ RE/; | |||||||||
| 73 | 1 | our %LANGA2_EU=map { $_ => 1 } qw/bg cs da de el en es et fi fr ga hu it lt lv mt nl pl pt ro sk sl sv/; | |||||||||
| 74 | |||||||||||
| 75 | sub new | ||||||||||
| 76 | 0 | ▶ | { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 77 | 0 | my $class=shift; | |||||||||
| 78 | 0 | my $self=$class->SUPER::new(@_); | |||||||||
| 79 | 0 | $self->{info}->{host_as_attr}=1; | |||||||||
| 80 | 0 | $self->{info}->{contact_i18n}=1; ## LOC only | |||||||||
| 81 | 0 | return $self; | |||||||||
| 82 | } | ||||||||||
| 83 | |||||||||||
| 84 | 0 | ▶ | sub periods { return map { DateTime::Duration->new(years => $_) } (1..10); } | ||||||||
|
Subroutine
periods: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 85 | 0 | ▶ | sub name { return 'EURid'; } | ||||||||
|
Subroutine
name: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 86 | 0 | ▶ | sub tlds { return ('eu'); } | ||||||||
|
Subroutine
tlds: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 87 | 0 | ▶ | sub object_types { return (qw/domain contact nsgroup keygroup/); } | ||||||||
|
Subroutine
object_types: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 88 | 0 | ▶ | sub profile_types { return qw/epp das whois das-registrar whois-registrar/; } | ||||||||
|
Subroutine
profile_types: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 89 | |||||||||||
| 90 | sub transport_protocol_default | ||||||||||
| 91 | 0 | ▶ | { | ||||||||
|
Subroutine
transport_protocol_default: not called CC=6 SCAR=37.4
Pod
undocumented
| |||||||||||
| 92 | 0 | my ($self,$type)=@_; | |||||||||
| 93 | |||||||||||
| 94 | 0 | ▶ | return ('Net::DRI::Transport::Socket',{remote_host=>'epp.tryout.registry.eu',remote_port=>700},'Net::DRI::Protocol::EPP::Extensions::EURid',{}) if $type eq 'epp'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 95 | 0 | ▶ | return ('Net::DRI::Transport::Socket',{remote_host=>'das.eu'},'Net::DRI::Protocol::DAS',{no_tld=>1,version=>'2.0'}) if $type eq 'das'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 96 | 0 | ▶ | return ('Net::DRI::Transport::Socket',{remote_host=>'whois.eu'},'Net::DRI::Protocol::Whois',{}) if $type eq 'whois'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 97 | 0 | ▶ | return ('Net::DRI::Transport::Socket',{remote_host=>'das.registry.eu'},'Net::DRI::Protocol::DAS',{no_tld=>1,version=>'2.0'}) if $type eq 'das-registrar'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 98 | 0 | ▶ | return ('Net::DRI::Transport::Socket',{remote_host=>'whois.registry.eu'},'Net::DRI::Protocol::Whois',{}) if $type eq 'whois-registrar'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 99 | 0 | return; | |||||||||
| 100 | } | ||||||||||
| 101 | |||||||||||
| 102 | ###################################################################################### | ||||||||||
| 103 | |||||||||||
| 104 | ## See terms_and_conditions_v1_0_.pdf, Section 2.2.ii | ||||||||||
| 105 | sub verify_name_domain | ||||||||||
| 106 | 0 | ▶ | { | ||||||||
|
Subroutine
verify_name_domain: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 107 | 0 | my ($self,$ndr,$domain,$op)=@_; | |||||||||
| 108 | 0 | return $self->_verify_name_rules($domain,$op,{check_name => 1, | |||||||||
| 109 | check_name_unicode => 1, | ||||||||||
| 110 | my_tld => 1, | ||||||||||
| 111 | min_length => 2, | ||||||||||
| 112 | no_double_hyphen_except_idn => 1, ## temporary bypass for IDNs | ||||||||||
| 113 | no_country_code => 1, | ||||||||||
| 114 | }); | ||||||||||
| 115 | } | ||||||||||
| 116 | |||||||||||
| 117 | # sub domain_check_contact_for_transfer | ||||||||||
| 118 | # { | ||||||||||
| 119 | # my ($self,$ndr,$domain,$rd)=@_; | ||||||||||
| 120 | # $self->enforce_domain_name_constraints($ndr,$domain,'check_contact_for_transfer'); | ||||||||||
| 121 | # | ||||||||||
| 122 | # my $rc=$ndr->process('domain','check_contact_for_transfer',[$domain,$rd]); | ||||||||||
| 123 | # return $rc; | ||||||||||
| 124 | # } | ||||||||||
| 125 | |||||||||||
| 126 | sub registrar_info | ||||||||||
| 127 | 0 | ▶ | { | ||||||||
|
Subroutine
registrar_info: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 128 | 0 | my ($self,$ndr)=@_; | |||||||||
| 129 | 0 | my $rc=$ndr->process('registrar','info'); | |||||||||
| 130 | 0 | return $rc; | |||||||||
| 131 | } | ||||||||||
| 132 | |||||||||||
| 133 | # sub domain_remind | ||||||||||
| 134 | # { | ||||||||||
| 135 | # my ($self,$ndr,$domain,$rd)=@_; | ||||||||||
| 136 | # $self->enforce_domain_name_constraints($ndr,$domain,'remind'); | ||||||||||
| 137 | # | ||||||||||
| 138 | # my $rc=$ndr->process('domain','remind',[$domain,$rd]); | ||||||||||
| 139 | # return $rc; | ||||||||||
| 140 | # } | ||||||||||
| 141 | |||||||||||
| 142 | ################################################################################################################# | ||||||||||
| 143 | 1 | 1; | |||||||||