Skip to content

Commit

Permalink
Merge pull request #27 from kylinsoong/master
Browse files Browse the repository at this point in the history
add toc manual to embedded doc
  • Loading branch information
kylinsoong committed Apr 10, 2016
2 parents 59d235d + ae28365 commit 7968639
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions embedded/Embedded_Guide.adoc
@@ -1,6 +1,8 @@


= Embedded Guide
:toc: manual
:toc-placement: preamble

Embedded is a light-weight version of Teiid for use in any Java 7+ JRE. JBoss AS nor any application server is not required. This feature/kit are still evolving. Please consult the source examples and even unit tests utilizing the EmbeddedServer for a more complete guide as to its use.

Expand Down
4 changes: 3 additions & 1 deletion embedded/Logging_in_Teiid_Embedded.adoc
@@ -1,4 +1,6 @@

= Logging in Teiid Embedded

Teiid’s LogManager is an interface to a single logging framework that is easily accessible by any component. Using the LogManager, a component can quickly submit a log message, and can rely upon the LogManager to determine

* whether that message is to be recorded or discarded
Expand Down Expand Up @@ -75,5 +77,5 @@ formatter.COLOR-PATTERN.pattern=%K{level}%d{HH\:mm\:ss,SSS} %-5p \[%c\] (%t) %s%

To bridge JBoss Logging with Log4j, the only need to do is have a 1.x log4j jar in your class path.

If your system use Log4j as logging framework, with above JBoss LogManager bridge Log4j functionality and steps in *Bridging with JBoss logging*, it’s easy to set up logging framework consistent between Teiid Embedded and your system.
If your system use Log4j as logging framework, with above JBoss LogManager bridge Log4j functionality and steps in <<Bridging with JBoss Logging, Bridging with JBoss Logging>>, it’s easy to set up logging framework consistent between Teiid Embedded and your system.

10 changes: 9 additions & 1 deletion embedded/Secure_Embedded_with_PicketBox.adoc
@@ -1,4 +1,12 @@

= Secure Embedded with PicketBox
:toc: manual
:toc-placement: preamble

Secure Embedded with PicketBox.

== Steps of implement a JAAS authentication

PicketBox is a Java Security Framework that build on top of JAAS. PicketBox is configured via a schema formatted Security Configuration File(https://raw.githubusercontent.com/picketbox/picketbox/master/security-jboss-sx/jbosssx/src/main/resources/schema/security-config_5_0.xsd[security-config_5_0.xsd]) and provides various LoginModule Implementations (UsersRolesLoginModule, LdapExtLoginModule, DatabaseServerLoginModule, etc). The following are 5 key steps to execute a authentication:

[source,java]
Expand Down Expand Up @@ -40,7 +48,7 @@ Add ’teiid-engine-VERSION.jar’to classpath is necessary. If you are using th
</dependency>
----

The key to develop a SecurityHelper is implement the authenticate() method. PicketBox’s 5 key steps to execute an authentication is shown in the example below:
The key to develop a SecurityHelper is implement the authenticate() method. PicketBox’s 5 key steps to execute an authentication which depicted in <<Steps of implement a JAAS authentication, Steps of implement a JAAS authentication>> is shown in the example below:

[source,java]
----
Expand Down

0 comments on commit 7968639

Please sign in to comment.