Skip to content

Commit

Permalink
Renamed the schema to include the stability level in it
Browse files Browse the repository at this point in the history
  • Loading branch information
Prarthona Paul committed Aug 20, 2024
1 parent f171c96 commit 05fc2b9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private enum Version {
VERSION_1_5("urn:elytron:client:1.5", VERSION_1_4),
VERSION_1_6("urn:elytron:client:1.6", VERSION_1_5),
VERSION_1_7("urn:elytron:client:1.7", VERSION_1_6),
VERSION_1_8("urn:elytron:client:1.8", VERSION_1_7);
VERSION_1_8_PREVIEW("urn:elytron:client:preview:1.8", VERSION_1_7);

final String namespace;

Expand Down Expand Up @@ -541,7 +541,7 @@ private static void parseSslContextType(final ConfigurationXMLStreamReader reade
case "accept-ocsp-stapling": {
if (isSet(foundBits, 10)) throw reader.unexpectedElement();
foundBits = setBit(foundBits, 10);
if (!xmlVersion.isAtLeast(Version.VERSION_1_8)) throw reader.unexpectedElement();
if (!xmlVersion.isAtLeast(Version.VERSION_1_8_PREVIEW)) throw reader.unexpectedElement();
acceptOcspStapling = parseOcspStaplingType(reader, trustManagerBuilder, xmlVersion, keyStoresMap);
break;
}
Expand Down Expand Up @@ -606,14 +606,14 @@ private static boolean parseOcspStaplingType(ConfigurationXMLStreamReader reader
switch (reader.getAttributeLocalName(i)) {
case "accept-ocsp": {
if (acceptOcspStapling) throw reader.unexpectedAttribute(i);
if (!xmlVersion.isAtLeast(Version.VERSION_1_8)) throw reader.unexpectedAttribute(i);
if (!xmlVersion.isAtLeast(Version.VERSION_1_8_PREVIEW)) throw reader.unexpectedAttribute(i);
acceptOcspStapling = reader.getBooleanAttributeValueResolved(i);
builder.setOcspStapling(acceptOcspStapling);
break;
}
case "soft-fail": {
if (softFail) throw reader.unexpectedAttribute(i);
if (!xmlVersion.isAtLeast(Version.VERSION_1_8)) throw reader.unexpectedAttribute(i);
if (!xmlVersion.isAtLeast(Version.VERSION_1_8_PREVIEW)) throw reader.unexpectedAttribute(i);
softFail = reader.getBooleanAttributeValueResolved(i);
builder.setSoftFail(softFail);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:elytron:client:1.8"
xmlns="urn:elytron:client:1.8"
targetNamespace="urn:elytron:client:preview:1.8"
xmlns="urn:elytron:client:preview:1.8"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
version="1.0">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
limitations under the License.
-->
<configuration>
<authentication-client xmlns="urn:elytron:client:1.8">
<authentication-client xmlns="urn:elytron:client:preview:1.8">
<authentication-configurations>
<configuration name="clear-cred">
<credentials>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<!-- Configuration for the SSLAuthenticationTest -->
<configuration>
<authentication-client xmlns="urn:elytron:client:1.8">
<authentication-client xmlns="urn:elytron:client:preview:1.8">
<key-stores>
<key-store name="ca" type="PKCS12" provider="SUN">
<file name="target/test-classes/pkcs12/ca.truststore"/>
Expand Down

0 comments on commit 05fc2b9

Please sign in to comment.