Skip to content

Commit 177abaf

Browse files
committed
Rename the security method to securityLayer.
1 parent 790c4d3 commit 177abaf

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

src/FreeDSx/Sasl/Mechanism/AnonymousMechanism.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function challenge(): ChallengeInterface
6060
/**
6161
* {@inheritDoc}
6262
*/
63-
public function security(): SecurityLayerInterface
63+
public function securityLayer(): SecurityLayerInterface
6464
{
6565
throw new SaslException('The ANONYMOUS mechanism does not support a security layer.');
6666
}

src/FreeDSx/Sasl/Mechanism/CramMD5Mechanism.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function challenge(): ChallengeInterface
6060
/**
6161
* {@inheritDoc}
6262
*/
63-
public function security(): SecurityLayerInterface
63+
public function securityLayer(): SecurityLayerInterface
6464
{
6565
throw new SaslException('CRAM-MD5 does not support a security layer.');
6666
}

src/FreeDSx/Sasl/Mechanism/DigestMD5Mechanism.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function challenge(): ChallengeInterface
6868
/**
6969
* {@inheritDoc}
7070
*/
71-
public function security(): SecurityLayerInterface
71+
public function securityLayer(): SecurityLayerInterface
7272
{
7373
return new DigestMD5SecurityLayer();
7474
}

src/FreeDSx/Sasl/Mechanism/MechanismInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ public function challenge(): ChallengeInterface;
4444
/**
4545
* Get the security layer object for this mechanism.
4646
*/
47-
public function security(): SecurityLayerInterface;
47+
public function securityLayer(): SecurityLayerInterface;
4848
}

src/FreeDSx/Sasl/Mechanism/PlainMechanism.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function challenge(): ChallengeInterface
6060
/**
6161
* {@inheritDoc}
6262
*/
63-
public function security(): SecurityLayerInterface
63+
public function securityLayer(): SecurityLayerInterface
6464
{
6565
throw new SaslException('The PLAIN mechanism does not support a security layer.');
6666
}

tests/unit/FreeDSx/Sasl/Mechanism/AnonymousMechanismTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testSecurityThrowsAnException()
4343
{
4444
$this->expectException(SaslException::class);
4545

46-
$this->mechanism->security();
46+
$this->mechanism->securityLayer();
4747
}
4848

4949
public function testChallengeReturnsThePlainChallenge()

tests/unit/FreeDSx/Sasl/Mechanism/CramMD5MechanismTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testSecurityThrowsAnException()
4040
{
4141
$this->expectException(SaslException::class);
4242

43-
$this->mechanism->security();
43+
$this->mechanism->securityLayer();
4444
}
4545

4646
public function testChallenge()

tests/unit/FreeDSx/Sasl/Mechanism/DigestMD5MechanismTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testSupportsIntegrity()
4545

4646
public function testSecurity()
4747
{
48-
$this->assertInstanceOf(SecurityLayerInterface::class, $this->mech->security());
48+
$this->assertInstanceOf(SecurityLayerInterface::class, $this->mech->securityLayer());
4949
}
5050

5151
public function testChallenge()

tests/unit/FreeDSx/Sasl/Mechanism/PlainMechanismTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testSecurityThrowsAnException()
4040
{
4141
$this->expectException(SaslException::class);
4242

43-
$this->mechanism->security();
43+
$this->mechanism->securityLayer();
4444
}
4545

4646
public function testChallengeReturnsThePlainChallenge()

0 commit comments

Comments
 (0)