<%@ page import="com.license4j.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>LICENSE4J-WebApplication-Example Licensing</title>
        <link rel="stylesheet" type="text/css" href="main.css" />
    </head>
    <body>
        <div class="main">
            <h1>Sample Licenses</h1>
            <p>
                Following licenses are valid and can be used for testing. Activation
                will be performed on Online.License4J servers. When license is activated, an activated
                license text is obtained from Online.License4J license servers.
            </p>

            <b>License Keys With Enabled Activation</b>
            <br />
            <span class="licenselist">
                4L39R-SGIMV-KL2QK-JS9LC-2TPNB
                <br/>
                RZ9S2-T3K5W-X5G5I-IFQFD-LRHTH
            </span>

            <br /><br />
            <b>License Keys Without Activation</b>
            <br />
            <span class="licenselist">
                3HL2T-EID7M-5E32Y-BUCX5-SUMCY
                <br/>
                WCS7T-G2ALX-BFJYK-R4X9X-WR2IM
            </span>
            <br /><br />
            <b>License Text With Enabled Activation</b>
            <span class="licenselist">
                <pre># Example Web Application License (id: 1434174397016)
81233af205980b0db506b1654ced1871644d9d5f4a1f741459937f89c1c9
49fac416f1b664ade0d0b3a3f32d2112e22abf5f86ab8f69f67d438ac6fc
9e85413679173152c5667de1dce59d22d8402839d17ef19f033dde88d028
8579361488eecee837a589948aca531f229e623e7203f9607fed32fb8a5e
fec4a674618641134a6e4dc3f920ed66eca9d0ed9bcaa1ab122d9f6daabe
942a5356c7dc85826731e75c0ac44906da9c03853219a77db90196d7adee
7e37d0278417bb7eb6895be278747e555c170d5759e0b0e0fbe1350ccea6
8d0eec0c3e4a462b278e5e7fa6d64561a22eb7ada882c7e734ea3640613a
b51971a94b020554ce0d2a8d30f138ee4450aa7cfbe1b2b274d7f2199a47
8461b794e5257e9cde42be6b29da3e282ca65aafaa348e629bf8cb96fa75
0dca44626b14286437ac2e79749ba2fec7c2b602b321b7e89ebc99bde757
3495985fa8283254f40abf528536ad709d30aef4acf85135e994f63dff5a
7da94d0c895dc66330ac6b34ff1ea2f4da5b7da2bd418a97dcded5d71ca8
736e194097952306b85a56638d79b7f6745d76509cf20c35ca78bb1dd976
ec656c237156985d4df9cd6a626ee92d19472925db357eb1122f0cef2c7d
03518f4547dc75e2cf482fcdad486056a9027a8251a097607ad25432013b
6dbe9f4c175d859997afffbdefbd0c68</pre>
                <br/>
                <pre># Example Web Application License (id: 1434188461970)
81233af205980b0db506b1654ced1871644d9d5f4a1f741459937f89c1c9
49fac416f1b664ade0d019e86eb96f0e4ce7b6b7205252906cf9ec264ab3
325f6f82154eed4e242d0708e972fb7eba61f26e4db1539d1ea87bbc072c
0feb6333959331bfc79d4f80d102883f6fccfd505af22dcb74e9cc651d69
fdada318dba44295723357af6af461a3246d2ee05b7514c2e58a91d76808
870e5dbf935f7615d6789d9f3a28d07485d0fcc99e30e143d01753d0e7d2
8896e3a7009bb73113a3e66d1505a9254eecd7b5d57b107a98b0e38b53b4
f6917200744f069340ad71b9473cae304b83eb87a2c5a7df3d4e4eafa93a
fb196eaf34dbe1ebe3b2c44ca7ec2eed3b58cd9344faed9086fdfcc5d9f8
5b6ddfe7866cd627cfa4ed0e21d9175f9554f5f36a38079bb6a56f36ce8e
f1bba5199a4fb8b256d798b75c831082d659e1680249ba3ffed8ddf086d8
8152404bb263bdf11f4908c0ad67650af393ead0fdadc9af3972528e9a25
f2d5c1bd4527ca2c8c1d619b441046814fe37773bdca629ba6531d769e9d
4d43085c6a09161f9d8102e725d5c214bcc583d7862c62a26b4fde31b697
99cfc997c5409d9e5fa8d3ff69439b80615b2595309e1a755c015d6a7da2
092f0d85204cc53f42de303bcb4c349fd34d6ca3a0e071db18b95dd59f8c
e76d940088ea126f9960c648dd27c91c</pre>
            </span>

            <b>License Text Without Activation</b>
            <span class="licenselist">
                <br/>
                <pre># Example Web Application License (id: 1434179695226)
81233af205980b0d4545273f139669f4d4fb5591907ef81f4dce989276f1
039af9a31aa2332b6d4eb526111f72b7a9ccd3297882c98af801dcb635bf
7c1eb39d7e6dfc4f808c22a0020d1097aa1a4be294ac09490a946bfa5737
286fe0f1e7b9e2a06a6a6c4adf57965a6bb0ff1a23e0d4bf25048e697c63
0f86ea8805aac65841c88abce4a53ecb1b9c422d63470d3ffedd7f417574
62934bf3c00c4bc408fee122e8828ffd622c382cb321856661802781ae2b
6ee6131e1c08cbf8fdf8e7a9eacf5433814791f4c9872a3c6cd84669ed22
55e1628a366a9c5eff3635b74e640121120e29381bb5e5773963206c7923
6e0a406541326806b55c305a88b4802b8aaea8d5a81a40e3993ef8c41924
3b24393c5dfea0de83e63522f334040939b99cbda4ab7b5268f185aa8625
2dd2712639910b8e8aa970c390326cfd6b3a332263fd3c8c438044040fc2
9b681bfde881d7cf1bc9b0d0e13fee7339c23f8d78a5b86be900a0c81e97
2173f7bf0b86e24ac0d8efbe74617b028ad3f06c385210eeabeb7d8480b1
b0f88f13c03b8a326f406f6a5f73a1643f7dcc2a02dfec4e55169a95cc20
522ba1bf110f83804d486a93571969e866d4c43d7cc225cde42657d89b1a
2d91f0e10e63f220d8fc85d86f1eb26ff715066a52cf530a7cbfc9f7277d</pre>
                <br/>                   
                <pre># Example Web Application License (id: 1434188499377)
81233af205980b0d4545273f139669f4d4fb5591907ef81fbdebd30b1cd8
2155c1b9d9b35155e323a5ebc15c723d08e54dd00e45d88531b1322a5908
d568af3d4cd8e4dec03d25e8867317dce84797b37851117e27245f0deb24
170351bc5c449e6cb83ebc14632fc8ebeb0649e7ccd371f1547c45ab7dd7
82c62e1300456d88addfa1b72b1cd4829ef846393ddcf0784f81fd51a08e
1170b4d0e50ce7fcddca528c13c0a6d967c60fd8565efe137e0079352d2a
ca1d6ecdb0b5a2daa3daff752bffa4c86b58d3b615a334799a4c0ac52f55
b56a720ddb7520809f6e987a5120a752be963d4eabfcc05e020bc431aa38
4900b9baefda1227f004d57c73289bc4666e55cb9de47594e3345ccd4c39
351f431e0edd7e197cecbaaeda22b9a0a74d5a27f910f16cfef4e0a92dda
180fc9b1e0b057371ad6eaee3f9bd5ba6f7d7f65414155e7af526b4b6386
4513cadf18db7f3b26aaba62bb8698012fc719ce64460f0c67ec2d2db0d7
bac2be6c75c86eaacd26ab31537832621b37cf54a40a6d40e1a22a37bacb
613b538c1211c2191431e6ff3d82bf23d050ab0db6c25bbe9507096f1149
ad03263ae0c425fbdad98cfd5ef7c95f02fee3bd21f7df54f72487bc6745
3536abdeb329597b6a01dd10404bb8565a4a64002d17de108d2dbfba610a</pre>

            </span>


            <div class="licenseinfo">
                <%
                    if (getServletContext().getAttribute("license") != null) {
                        if (getServletContext().getAttribute("license") instanceof License) {
                            License license = (License) getServletContext().getAttribute("license");
                            out.print("License Validation Status: " + license.getValidationStatus());
                            out.print("<br/>");
                            out.print("License Activation Status: " + license.getActivationStatus());

                            /**
                             * If license is valid and it is a license text,
                             * display registration name for information. Only
                             * license text can hold user information etc.
                             */
                            if (license.getValidationStatus() == ValidationStatus.LICENSE_VALID
                                    && license.getLicenseText() != null) {
                                out.print("<br/>");
                                out.print("License Registered To: " + license.getLicenseText().getUserRegisteredTo());
                                out.print("<br/>");
                                out.print("License Quantity: " + license.getLicenseText().getLicenseQuantity());
                            }
                        }
                    } else {
                        out.print("NO LICENSE");
                    }
                %>

                <br /><br/>
                <a href="/LICENSE4J-WebApplication-Example/">Back to main page</a>
                <br />
                <a href="licensing.jsp">Licensing Page</a>
                </form>
                </span>
            </div>
        </div>
    </body>
</html>
