[x3d-public] Apache Santuario Java - XML security test sat -- Follow up. SUCCESS!

yottzumm at gmail.com yottzumm at gmail.com
Thu Dec 5 15:56:20 PST 2019


$ ~/apache-maven-3.6.3/bin/mvn -Dmaven.ext.class.path=/c/Program\
Files/NetBeans-11.2/netbeans/java/maven-nblib/netbeans-eventspy.jar
-Dfile.encoding=UTF-8 install 
[snip]
[INFO] NETBEANS-ExecEvent:{"prjcount":3,"type":"SessionEnded"}
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for XML Security 1.0-SNAPSHOT:
[INFO]
[INFO] XML Security ....................................... SUCCESS [  0.232
s]
[INFO] Digital Signature .................................. SUCCESS [ 11.902
s]
[INFO] Encrypt Decrypt .................................... SUCCESS [  2.477
s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  14.722 s
[INFO] Finished at: 2019-12-05T17:28:01-06:00
[INFO]
------------------------------------------------------------------------

So this is good.  I guess that NetBeans jar is required for building?

This is our first maven build for sourceforge?   Are you going to pursue
maven or flip to ant?

My Java coding is returning to me. I see the @Test annotations. I would hope
that some of the test code would move into the library, not sure.

So for GPG, I have this function (JavaScript). The GPG program runs on the
server.

function crypto() {
                var args = [];
                console.log("gpg", $('textarea#json').val(), args);
                if ($('#sign').is(':checked')) {
                        args.push('--sign');
                        args.push('--passphrase');
                        args.push($('#passphrase').val());
                        args.push('--armor');
                }
                if ($('#encrypt').is(':checked')) {
                        args.push('--encrypt');
                        args.push('--recipient');
                        args.push($('#recipient').val());
                        args.push('--armor');
                }
                if ($('#encrypt').is(':checked') ||
$('#sign').is(':checked')) {
                        socket.emit("gpg", $('textarea#json').val(), args);
                } else {
                        // send encrypted results and get decrypted back
                        args.push('--decrypt');
                        args.push('--passphrase');
                        args.push($('#passphrase').val());
                        socket.emit("gpg", $('textarea#cryptojson').val(),
args);
                }
}
Thanks,

John

-----Original Message-----
From: yottzumm at gmail.com <yottzumm at gmail.com> 
Sent: Thursday, December 5, 2019 5:25 PM
To: 'Don Brutzman' <brutzman at nps.edu>; 'Terry Norbraten' <tdnorbra at nps.edu>
Cc: 'Blais, Curtis (Curt) (CIV)' <clblais at nps.edu>; 'Chris Lane'
<clane at 3dmd.com>; 'X3D Graphics public mailing list' <x3d-public at web3d.org>;
'Brennenstuhl, Tobias FORNATL, GY' <tobias.brennenstuhl.gy at nps.edu>
Subject: RE: [x3d-public] Apache Santuario Java - XML security test sat

Don, I found this good article on JSON security.

https://www.securitycommunity.tcs.com/infosecsoapbox/articles/2017/12/09/jso
n-security

I think for on-wire security, we just use HTTPS/TLS/SSL for security for
JSON, in the short term, with the migration path below.

I am willing to discuss linking resource with method into webkeys if someone
wants to, so you can only call the method on that resource.  Otherwise, we
must use session keys.

I also think it's significant that we should stay away from RSA or
encryption schemes that rely on factoring large primes.   Amazon, for
example, just came out with BraKet, and Microsoft already has Q# near
quantum platforms, and are actively pursuing cracking the RSA protocols
(that might have been interpolated or misunderstood from an article). Other
encryption schemes that rely on elliptic curves may be more suitable for
long term encryption. Sorry that I am not definite on this as it's only word
of mouth.

Don't forget that if you have the same text that appears in the same place
in many documents, it's much easier to crack.  This was fixed with gzip.

Don, can we get a description of what the XML Security test does?  The
others are self-explanatory.

I would tend to use Gnu Privacy Guard (GPG)with JSON and have already
implemented some simple test cases for X3D JSON (somewhere), however the
information about GPG may be around 8 years old, and I don't know what
they're doing with RSA in GPG.  I can ask a few of my security friends if
someone becomes very interested in this.

I'm going to run the build on my own.

John

-----Original Message-----
From: x3d-public <x3d-public-bounces at web3d.org> On Behalf Of Don Brutzman
Sent: Thursday, December 5, 2019 2:15 PM
To: Terry Norbraten <tdnorbra at nps.edu>
Cc: Blais, Curtis (Curt) (CIV) <clblais at nps.edu>; Chris Lane
<clane at 3dmd.com>; X3D Graphics public mailing list <x3d-public at web3d.org>;
Brennenstuhl, Tobias FORNATL, GY <tobias.brennenstuhl.gy at nps.edu>
Subject: [x3d-public] Apache Santuario Java - XML security test sat

Terry, thanks for the port of your Java for XML encryption/decryption from
NPS to org.web3d.tools.security code tree.  I was able to update, clean and
build successfully with Maven today.

*
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/securit
y/XmlSecurityApacheSantuario/

Question: are there any parts that have to be under the old license?  Am
hoping to shift as much as possible (hopefully all) to the Web3D Consortium
open-source license.

*
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/license.html
 
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/license.txt

Please add more to the README so that others can follow along
satisfactorily.  Also include a Future Work section that notes:

- Integration with X3DJSAIL is planned.
- Adaptation to C++ is possible using similar Apache Santuario alternate
implementation.
   https://santuario.apache.org

Of course no one is limited to the Apache implementation for this open
standard, but it does have a high degree of trust.

	Apache Santuario
	https://santuario.apache.org

Build output log follows, looks great.  Also saved as following file to
enable future sleuthing comparisons and improvements.

https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/tools/securit
y/XmlSecurityApacheSantuario/build.out.log.txt

-------

cd C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario;
"JAVA_HOME=C:\\Program Files\\Java\\jdk-13" cmd /c "\"\"C:\\Program
Files\\NetBeans-11.2\\java\\maven\\bin\\mvn.cmd\"
-Dmaven.ext.class.path=\"C:\\Program
Files\\NetBeans-11.2\\java\\maven-nblib\\netbeans-eventspy.jar\"
-Dfile.encoding=UTF-8 install\""
Scanning for projects...
------------------------------------------------------------------------
Reactor Build Order:

XML Security
Digital Signature
Encrypt Decrypt
                                                                         
------------------------------------------------------------------------
Building XML Security 1.0-SNAPSHOT
------------------------------------------------------------------------

--- maven-install-plugin:2.4:install (default-install) @ XmlSecurity ---
Installing
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\pom.
xml to
C:\Users\brutzman\.m2\repository\org\web3d\x3d\tools\security\XmlSecurityApa
cheSantuario\XmlSecurity\1.0-SNAPSHOT\XmlSecurity-1.0-SNAPSHOT.pom
                                                                         
------------------------------------------------------------------------
Building Digital Signature 1.0-SNAPSHOT
------------------------------------------------------------------------

--- maven-resources-plugin:2.6:resources (default-resources) @
DigitalSignature --- Using 'UTF-8' encoding to copy filtered resources.
Copying 5 resources

--- maven-compiler-plugin:3.1:compile (default-compile) @ DigitalSignature
--- Changes detected - recompiling the module!
Compiling 7 source files to
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\digi
tal-signing\target\classes

--- maven-resources-plugin:2.6:testResources (default-testResources) @
DigitalSignature --- Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\digi
tal-signing\src\test\resources

--- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
DigitalSignature --- Changes detected - recompiling the module!
Compiling 1 source file to
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\digi
tal-signing\target\test-classes

--- maven-surefire-plugin:2.12.4:test (default-test) @ DigitalSignature ---
Surefire report directory:
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\digi
tal-signing\target\surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running
org.web3d.x3d.tools.security.XmlSecurityApacheSantuario.DigitalSignature.Sig
natureDOMTest
  INFO [main] (SignatureStAX.java:125) - Signature verified for element: X3D
of file: HelloWorld.x3d <X3D xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance"
Id="G9784e2fd-c47c-4cda-afad-2c2d165a4301" profile="Immersive" version="3.2"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.2.x
sd"><dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"
Id="G7ad4951c-1c22-46f5-8adf-5a07b807f60a"><dsig:SignedInfo><dsig:Canonicali
zationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"></dsig:CanonicalizationM
ethod><dsig:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"></dsig:SignatureMetho
d><dsig:Reference
URI="#G9784e2fd-c47c-4cda-afad-2c2d165a4301"><dsig:Transforms><dsig:Transfor
m
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"></dsig:Tra
nsform><dsig:Transform
Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"></dsig:Transform
></dsig:Transforms><dsig:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"></dsig:DigestMethod><dsig
:DigestValue>zLCObMBUZ7ex1kYkLj4xA//gJUI=</dsig:DigestValue></dsig:Reference
></dsig:SignedInfo><dsig:SignatureValue>g41dnsvo1dCH1L9mooupIOE/sCvfeMEu
>+sAv
o78kFWQ7kOsgE9a7Ow8Yn/PYrk9MsGjzHAwjLMKX&#xD;
Muq7UBHTqatE4UV2JBEOp9rNP8U2rGdTIJ+8cfQx2hq5D/sBeOeqt2n1952YC+Fg4qreA64Y
Muq7UBHTqatE4UV2JBEOp9rNP8U2rGdTIJ+nmqu&#xD;
ZWnNYWlAUkvWC82qTmBYHBtXdNV7EgbRDk2yBfPRe+SfBB4L4HaBWJli9TxIylwhT56hrK0HxV+5
&#xD;
+bTg91FSUODnJwQ6RbxQ3SzcsOrljN5W7s5FTlDhkqOr1kVWaa9bgwf9nvHn3tfNvDR8SkZv
+TgBA&#xD;
pOxqXauNeUw3Q6NuvCi+ozaojKqyKuPC66C9NQ==</dsig:SignatureValue><dsig:KeyI
pOxqXauNeUw3Q6NuvCi+nfo
pOxqXauNeUw3Q6NuvCi+Id="G99b1238e-ec48-4367-a9bf-21b1e4ce6ad8"><dsig:X50
pOxqXauNeUw3Q6NuvCi+9Data><dsig:X509Certificate>MIIDvjCCAqYCAzOA3DANBgkq
pOxqXauNeUw3Q6NuvCi+hkiG9w0BAQUFADCBozELMAkGA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oS6T9JpgXK+Ro
eXLXWz+6juALZkktFt8BwRlv3DcI5ku3Q5u385zZKGr+E9gmzTYvwa19mBnoS6T9JpgXK+&#
eXLXWz+6juALZkktFt8BwRlv3DcI5ku3Q5u385zZKGr+E9gmzTYvwa19mBnoS6T9JpgXK+xD
eXLXWz+6juALZkktFt8BwRlv3DcI5ku3Q5u385zZKGr+E9gmzTYvwa19mBnoS6T9JpgXK+;
IutNv/oH571o1vMw9neqeoHQjLcc9azJG7fTERX6VVlHl5YWRxM0g/0IMw6x3PVYbFcAAByRAgMB
&#xD;
AAEwDQYJKoZIhvcNAQEFBQADggEBAFEisvXLNl6fRPXOeAB3JHvY8FYyOGqspkk18nLZVXS995Wh
&#xD;
OZ/lGaPIQjYSxUDKuLR8gKGwUVeNREqQQsIc4pBfB4i1kOiJqD+zdSiYWUr7LQpc2V2wt2bQ2utQ
&#xD;
/8++mbxrxiVRhBCXhzyGdT41Wzjui4KBs01ilkPz1YZVUZ4lZuZUCZbuJAAjFXScE1RDNmNZIeRd
&#xD;
MmQ4/UGBxemsGmCZP2GcIQL8g4GvFJD42U7+nLJGQUJi4g4AWGxi9OT3LVjrTzh8P1122Kb/Xxf/
&#xD;
7zs6+OHJt5CmTys7zJp2slRdO1o19btfrgWZRUbq0WF7mSVnjYvzMLMOo4IIkxzp7aw=</ds
7zs6+ig:X509Certificate></dsig:X509Data></dsig:KeyInfo></dsig:Signature>
   <head>
     <meta content="HelloWorld.x3d" name="title"></meta>
     <meta content="Simple X3D example" name="description"></meta>
     <meta content="30 October 2000" name="created"></meta>
     <meta content="7 August 2010" name="modified"></meta>
     <meta content="Don Brutzman" name="creator"></meta>
     <meta content="http://www.web3D.org" name="reference"></meta>
     <meta content="http://x3dGraphics.com" name="reference"></meta>
     <meta
content="http://www.web3d.org/x3d/content/examples/HelloWorld.x3d"
name="identifier"></meta>
     <meta
content="http://www.web3d.org/x3d/content/examples/HelloWorldTall.png"
name="image"></meta>
     <meta content="http://www.web3d.org/x3d/content/examples/license.html"
name="license"></meta>
     <meta content="X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
name="generator"></meta>
   </head>
   <Scene>
     <!-- Example scene to illustrate X3D nodes and fields (XML elements and
attributes) -->
     <Group bboxCenter="0 0 0" bboxSize="-1 -1 -1"
containerField="children">
       <Viewpoint centerOfRotation="0 -1 0" containerField="children"
description="Hello world!" fieldOfView="0.7854" jump="true" orientation="0 0
1 0" position="0 -1 7" retainUserOffsets="false"></Viewpoint>
       <Transform bboxCenter="0 0 0" bboxSize="-1 -1 -1" center="0 0 0"
containerField="children" rotation="0 1 0 3" scale="1 1 1"
scaleOrientation="0 0 1 0" translation="0 0 0">
         <Shape bboxCenter="0 0 0" bboxSize="-1 -1 -1"
containerField="children">
           <Sphere containerField="geometry" radius="1"
solid="true"></Sphere>
           <Appearance containerField="appearance">
             <Material ambientIntensity="0.2" containerField="material"
diffuseColor="0 0.5 1" emissiveColor="0 0 0" shininess="0.2"
specularColor="0 0 0" transparency="0"></Material>
             <ImageTexture containerField="texture" repeatS="true"
repeatT="true" url=""earth-topo.png" "earth-topo.jpg"
"earth-topo-small.gif"
"http://www.web3d.org/x3d/content/examples/Basic/earth-topo.png"
"http://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg"
"http://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif&q
uot;"></ImageTexture>
           </Appearance>
         </Shape>
       </Transform>
       <Transform bboxCenter="0 0 0" bboxSize="-1 -1 -1" center="0 0 0"
containerField="children" rotation="0 0 1 0" scale="1 1 1"
scaleOrientation="0 0 1 0" translation="0 -2 0">
         <Shape bboxCenter="0 0 0" bboxSize="-1 -1 -1"
containerField="children">
           <Text containerField="geometry" maxExtent="0.0" solid="false"
string=""Hello" "world!"">
             <FontStyle containerField="fontStyle" family="&SERIF&"
horizontal="true" justify=""MIDDLE" "MIDDLE""
leftToRight="true" size="1.0" spacing="1.0" style="PLAIN"
topToBottom="true"></FontStyle>
           </Text>
           <Appearance containerField="appearance">
             <Material ambientIntensity="0.2" containerField="material"
diffuseColor="0.1 0.5 1" emissiveColor="0 0 0" shininess="0.2"
specularColor="0 0 0" transparency="0"></Material>
           </Appearance>
         </Shape>
       </Transform>
     </Group>
   </Scene>
</X3D>
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.318 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


--- maven-jar-plugin:2.4:jar (default-jar) @ DigitalSignature --- Building
jar:
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\digi
tal-signing\target\DigitalSignature-1.0-SNAPSHOT.jar

--- maven-install-plugin:2.4:install (default-install) @ DigitalSignature
--- Installing
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\digi
tal-signing\target\DigitalSignature-1.0-SNAPSHOT.jar to
C:\Users\brutzman\.m2\repository\org\web3d\x3d\tools\security\XmlSecurityApa
cheSantuario\DigitalSignature\1.0-SNAPSHOT\DigitalSignature-1.0-SNAPSHOT.jar
Installing
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\digi
tal-signing\pom.xml to
C:\Users\brutzman\.m2\repository\org\web3d\x3d\tools\security\XmlSecurityApa
cheSantuario\DigitalSignature\1.0-SNAPSHOT\DigitalSignature-1.0-SNAPSHOT.pom
                                                                         
------------------------------------------------------------------------
Building Encrypt Decrypt 1.0-SNAPSHOT
------------------------------------------------------------------------

--- maven-resources-plugin:2.6:resources (default-resources) @
EncryptDecrypt --- Using 'UTF-8' encoding to copy filtered resources.
Copying 5 resources

--- maven-compiler-plugin:3.1:compile (default-compile) @ EncryptDecrypt ---
Changes detected - recompiling the module!
Compiling 2 source files to
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\encr
ypt-decrypt\target\classes

--- maven-resources-plugin:2.6:testResources (default-testResources) @
EncryptDecrypt --- Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\encr
ypt-decrypt\src\test\resources

--- maven-compiler-plugin:3.1:testCompile (default-testCompile) @
EncryptDecrypt --- Changes detected - recompiling the module!
Compiling 1 source file to
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\encr
ypt-decrypt\target\test-classes

--- maven-surefire-plugin:2.12.4:test (default-test) @ EncryptDecrypt ---
Surefire report directory:
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\encr
ypt-decrypt\target\surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running
org.web3d.x3d.tools.security.XmlSecurityApacheSantuario.EncryptDecrypt.Encry
ptionDOMTest
  INFO [main] (EncryptionStAX.java:132) - Encryption verified for element:
X3D of file: HelloWorld.x3d <xenc:EncryptedData
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
Id="Gf311d51d-f206-476f-93be-f320c425ae2e"
Type="http://www.w3.org/2001/04/xmlenc#Element"><xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#aes128-cbc"></xenc:EncryptionMet
hod><dsig:KeyInfo
xmlns:dsig="http://www.w3.org/2000/09/xmldsig#"><xenc:EncryptedKey
Id="EK75a68a7b-2bac-4e6d-8184-097e490c3712"><xenc:EncryptionMethod
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"></xenc:Encryptio
nMethod><xenc:CipherData><xenc:CipherValue>KBem9JN/hDEMolEQgOjWc9pK0kRLV
nMethod>Cf5i
kK3X1WBjdudkJZM7ubcUMmGPh8tVcnVBXLb4CcEURmf&#xD;
r7C2SjIaPhAShOxYFgWA/8SodtdvR0Jxqo+K2Sg8A5K0+Lf46VszdPxlk9FXzwmGgvFimAF4XqM3
&#xD;
RuzakifAzitCPIspSCWRkRCRwITffXsLf6RAGknPOFwoi2gGUFcNAuK+tutqU6m0yIXOU/gM
RuzakifAzitCPIspSCWRkRCRwITffXsLf6RAGknPOFwoi2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xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xenc="http://www.w3.org/2001/04/xmlenc#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" profile="Immersive"
version="3.2"
xsd:noNamespaceSchemaLocation="http://www.web3d.org/specifications/x3d-3.2.x
sd">
   <head>
     <meta content="HelloWorld.x3d" name="title"></meta>
     <meta content="Simple X3D example" name="description"></meta>
     <meta content="30 October 2000" name="created"></meta>
     <meta content="7 August 2010" name="modified"></meta>
     <meta content="Don Brutzman" name="creator"></meta>
     <meta content="http://www.web3D.org" name="reference"></meta>
     <meta content="http://x3dGraphics.com" name="reference"></meta>
     <meta
content="http://www.web3d.org/x3d/content/examples/HelloWorld.x3d"
name="identifier"></meta>
     <meta
content="http://www.web3d.org/x3d/content/examples/HelloWorldTall.png"
name="image"></meta>
     <meta content="http://www.web3d.org/x3d/content/examples/license.html"
name="license"></meta>
     <meta content="X3D-Edit 3.3, https://savage.nps.edu/X3D-Edit"
name="generator"></meta>
   </head>
   <Scene>
     <!-- Example scene to illustrate X3D nodes and fields (XML elements and
attributes) -->
     <Group bboxCenter="0 0 0" bboxSize="-1 -1 -1"
containerField="children">
       <Viewpoint centerOfRotation="0 -1 0" containerField="children"
description="Hello world!" fieldOfView="0.7854" jump="true" orientation="0 0
1 0" position="0 -1 7" retainUserOffsets="false"></Viewpoint>
       <Transform bboxCenter="0 0 0" bboxSize="-1 -1 -1" center="0 0 0"
containerField="children" rotation="0 1 0 3" scale="1 1 1"
scaleOrientation="0 0 1 0" translation="0 0 0">
         <Shape bboxCenter="0 0 0" bboxSize="-1 -1 -1"
containerField="children">
           <Sphere containerField="geometry" radius="1"
solid="true"></Sphere>
           <Appearance containerField="appearance">
             <Material ambientIntensity="0.2" containerField="material"
diffuseColor="0 0.5 1" emissiveColor="0 0 0" shininess="0.2"
specularColor="0 0 0" transparency="0"></Material>
             <ImageTexture containerField="texture" repeatS="true"
repeatT="true" url=""earth-topo.png" "earth-topo.jpg"
"earth-topo-small.gif"
"http://www.web3d.org/x3d/content/examples/Basic/earth-topo.png"
"http://www.web3d.org/x3d/content/examples/Basic/earth-topo.jpg"
"http://www.web3d.org/x3d/content/examples/Basic/earth-topo-small.gif&q
uot;"></ImageTexture>
           </Appearance>
         </Shape>
       </Transform>
       <Transform bboxCenter="0 0 0" bboxSize="-1 -1 -1" center="0 0 0"
containerField="children" rotation="0 0 1 0" scale="1 1 1"
scaleOrientation="0 0 1 0" translation="0 -2 0">
         <Shape bboxCenter="0 0 0" bboxSize="-1 -1 -1"
containerField="children">
           <Text containerField="geometry" maxExtent="0.0" solid="false"
string=""Hello" "world!"">
             <FontStyle containerField="fontStyle" family="&SERIF&"
horizontal="true" justify=""MIDDLE" "MIDDLE""
leftToRight="true" size="1.0" spacing="1.0" style="PLAIN"
topToBottom="true"></FontStyle>
           </Text>
           <Appearance containerField="appearance">
             <Material ambientIntensity="0.2" containerField="material"
diffuseColor="0.1 0.5 1" emissiveColor="0 0 0" shininess="0.2"
specularColor="0 0 0" transparency="0"></Material>
           </Appearance>
         </Shape>
       </Transform>
     </Group>
   </Scene>
</X3D>
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.17 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0


--- maven-jar-plugin:2.4:jar (default-jar) @ EncryptDecrypt --- Building
jar:
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\encr
ypt-decrypt\target\EncryptDecrypt-1.0-SNAPSHOT.jar

--- maven-install-plugin:2.4:install (default-install) @ EncryptDecrypt ---
Installing
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\encr
ypt-decrypt\target\EncryptDecrypt-1.0-SNAPSHOT.jar to
C:\Users\brutzman\.m2\repository\org\web3d\x3d\tools\security\XmlSecurityApa
cheSantuario\EncryptDecrypt\1.0-SNAPSHOT\EncryptDecrypt-1.0-SNAPSHOT.jar
Installing
C:\x3d-code\www.web3d.org\x3d\tools\security\XmlSecurityApacheSantuario\encr
ypt-decrypt\pom.xml to
C:\Users\brutzman\.m2\repository\org\web3d\x3d\tools\security\XmlSecurityApa
cheSantuario\EncryptDecrypt\1.0-SNAPSHOT\EncryptDecrypt-1.0-SNAPSHOT.pom
------------------------------------------------------------------------
Reactor Summary:

XML Security ....................................... SUCCESS [  0.746 s]
Digital Signature .................................. SUCCESS [ 12.222 s]
Encrypt Decrypt .................................... SUCCESS [  5.544 s]
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 18.630 s
Finished at: 2019-12-05T11:50:10-08:00
Final Memory: 20M/70M
------------------------------------------------------------------------


all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
_______________________________________________
x3d-public mailing list
x3d-public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org





More information about the x3d-public mailing list