TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
Keypair.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Rsaauth
;
3
23
class
Keypair
implements
\TYPO3\CMS\Core\SingletonInterface
{
29
protected
$exponent
= 0;
30
36
protected
$privateKey
=
''
;
37
43
protected
$publicKeyModulus
= 0;
44
50
public
function
isReady
() {
51
return
$this->
hasExponent
() && $this->
hasPrivateKey
() && $this->
hasPublicKeyModulus
();
52
}
53
59
public
function
getExponent
() {
60
return
$this->exponent
;
61
}
62
74
public
function
setExponent
(
$exponent
) {
75
if
($this->
hasExponent
()) {
76
throw
new \BadMethodCallException(
'setExponent() must not be called more than one time.'
, 1296062830);
77
}
78
79
$this->exponent =
$exponent
;
80
}
81
87
protected
function
hasExponent
() {
88
return
$this->
getExponent
() !== 0;
89
}
90
96
public
function
getPrivateKey
() {
97
return
$this->privateKey
;
98
}
99
111
public
function
setPrivateKey
(
$privateKey
) {
112
if
($this->
hasPrivateKey
()) {
113
throw
new \BadMethodCallException(
'setPrivateKey() must not be called more than one time.'
, 1296062831);
114
}
115
116
$this->privateKey =
$privateKey
;
117
}
118
124
protected
function
hasPrivateKey
() {
125
return
$this->
getPrivateKey
() !==
''
;
126
}
127
133
public
function
getPublicKeyModulus
() {
134
return
$this->publicKeyModulus
;
135
}
136
148
public
function
setPublicKey
(
$publicKeyModulus
) {
149
if
($this->
hasPublicKeyModulus
()) {
150
throw
new \BadMethodCallException(
'setPublicKey() must not be called more than one time.'
, 1296062832);
151
}
152
153
$this->publicKeyModulus =
$publicKeyModulus
;
154
}
155
161
protected
function
hasPublicKeyModulus
() {
162
return
$this->
getPublicKeyModulus
() !== 0;
163
}
164
}
TYPO3\CMS\Rsaauth\Keypair
Definition:
Keypair.php:23
TYPO3\CMS\Rsaauth
TYPO3\CMS\Rsaauth\Keypair\setExponent
setExponent($exponent)
Definition:
Keypair.php:74
TYPO3\CMS\Rsaauth\Keypair\hasPublicKeyModulus
hasPublicKeyModulus()
Definition:
Keypair.php:161
TYPO3\CMS\Rsaauth\Keypair\setPrivateKey
setPrivateKey($privateKey)
Definition:
Keypair.php:111
TYPO3\CMS\Rsaauth\Keypair\isReady
isReady()
Definition:
Keypair.php:50
TYPO3\CMS\Rsaauth\Keypair\getExponent
getExponent()
Definition:
Keypair.php:59
TYPO3\CMS\Rsaauth\Keypair\hasExponent
hasExponent()
Definition:
Keypair.php:87
TYPO3\CMS\Rsaauth\Keypair\hasPrivateKey
hasPrivateKey()
Definition:
Keypair.php:124
TYPO3\CMS\Rsaauth\Keypair\getPublicKeyModulus
getPublicKeyModulus()
Definition:
Keypair.php:133
TYPO3\CMS\Rsaauth\Keypair\$privateKey
$privateKey
Definition:
Keypair.php:36
TYPO3\CMS\Rsaauth\Keypair\$exponent
$exponent
Definition:
Keypair.php:29
TYPO3\CMS\Rsaauth\Keypair\setPublicKey
setPublicKey($publicKeyModulus)
Definition:
Keypair.php:148
TYPO3\CMS\Rsaauth\Keypair\$publicKeyModulus
$publicKeyModulus
Definition:
Keypair.php:43
TYPO3\CMS\Core\SingletonInterface
Definition:
SingletonInterface.php:22
TYPO3\CMS\Rsaauth\Keypair\getPrivateKey
getPrivateKey()
Definition:
Keypair.php:96
typo3
sysext
rsaauth
Classes
Keypair.php
Generated on Wed Aug 7 2019 09:52:30 for TYPO3 CMS by
1.8.13