Skip to content

Commit

Permalink
fix(ThirdPartyEndpoint): Demote more public API members to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Mar 10, 2021
1 parent 80ae3ae commit cd11c82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import java.nio.ByteBuffer


public sealed class ThirdPartyEndpoint(
public val identityCertificate: Certificate
internal val identityCertificate: Certificate
) : Endpoint {

public val privateAddress : String get() = identityCertificate.subjectPrivateAddress
Expand All @@ -31,7 +31,7 @@ public sealed class ThirdPartyEndpoint(

public class PrivateThirdPartyEndpoint internal constructor(
public val firstPartyAddress: String,
public val authorization: Certificate,
internal val pda: Certificate,
identityCertificate: Certificate
) : ThirdPartyEndpoint(identityCertificate) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ internal class PrivateThirdPartyEndpointTest {
with(PrivateThirdPartyEndpoint.load(firstAddress, thirdAddress)!!) {
assertEquals(firstAddress, firstPartyAddress)
assertEquals(PDACertPath.PRIVATE_ENDPOINT.subjectPrivateAddress, address)
assertEquals(PDACertPath.PRIVATE_ENDPOINT, authorization)
assertEquals(PDACertPath.PRIVATE_ENDPOINT, pda)
assertEquals(PDACertPath.PRIVATE_ENDPOINT, identityCertificate)
}

Expand Down Expand Up @@ -89,7 +89,7 @@ internal class PrivateThirdPartyEndpointTest {
)
assertEquals(
authorization,
endpoint.authorization
endpoint.pda
)
assertEquals(
PDACertPath.PRIVATE_ENDPOINT,
Expand Down

0 comments on commit cd11c82

Please sign in to comment.