mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-26 22:02:41 +00:00
SEC-1689: Adjust manual to remove references to separate crypto module.
This commit is contained in:
parent
a50c9afbab
commit
57c3afd31a
@ -412,12 +412,4 @@
|
||||
</table>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<title><literal>spring-security-crypto</literal></title>
|
||||
<para>Provides convenient cryptographic APIs which are used by projects such as OAuth.
|
||||
This module currently has no external dependencies.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
</appendix>
|
@ -2,28 +2,15 @@
|
||||
<chapter xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="crypto" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Spring Security Crypto Module</title>
|
||||
|
||||
<section id="spring-security-crypto-introduction">
|
||||
<section xml:id="spring-security-crypto-introduction">
|
||||
<title>Introduction</title>
|
||||
<para>
|
||||
The Spring Security Crypto module provides support for symmetric encryption, key generation, and password encoding.
|
||||
The code is distributed as part of the core module but has no dependencies on any other Spring Security (or Spring) code.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id="spring-security-crypto-howtoget">
|
||||
<title>How to get</title>
|
||||
<para>
|
||||
Add the spring-security-crypto artifact to your classpath:
|
||||
<programlisting language="xml"><![CDATA[
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-crypto</artifactId>
|
||||
<version>${org.springframework.security-version}</version>
|
||||
</dependency>]]>
|
||||
</programlisting>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id="spring-security-crypto-encryption">
|
||||
<section xml:id="spring-security-crypto-encryption">
|
||||
<title>Encryptors</title>
|
||||
<para>
|
||||
The Encryptors class provides factory methods for constructing symmetric encryptors.
|
||||
@ -31,7 +18,7 @@
|
||||
You can also construct TextEncryptors to encrypt text strings.
|
||||
Encryptors are thread safe.
|
||||
</para>
|
||||
<section id="spring-security-crypto-encryption-bytes">
|
||||
<section xml:id="spring-security-crypto-encryption-bytes">
|
||||
<title>BytesEncryptor</title>
|
||||
<para>
|
||||
Use the Encryptors.standard factory method to construct a "standard" BytesEncryptor:
|
||||
@ -52,7 +39,7 @@ String salt = KeyGenerators.string().generateKey(); // generates a random 8-byte
|
||||
</programlisting>
|
||||
</para>
|
||||
</section>
|
||||
<section id="spring-security-crypto-encryption-text">
|
||||
<section xml:id="spring-security-crypto-encryption-text">
|
||||
<title>TextEncryptor</title>
|
||||
<para>
|
||||
Use the Encryptors.text factory method to construct a standard TextEncryptor:
|
||||
@ -76,7 +63,7 @@ Encryptors.queryableText("password", "salt");]]>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section id="spring-security-crypto-keygenerators">
|
||||
<section xml:id="spring-security-crypto-keygenerators">
|
||||
<title>Key Generators</title>
|
||||
<para>
|
||||
The KeyGenerators class provides a number of convenience factory methods for constructing different types of key generators.
|
||||
@ -118,7 +105,7 @@ KeyGenerators.string();]]>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<section id="spring-security-crypto-passwordencoders">
|
||||
<section xml:id="spring-security-crypto-passwordencoders">
|
||||
<title>Password Encoding</title>
|
||||
<para>
|
||||
The password package of the spring-security-crypto module provides support for encoding passwords.
|
||||
|
@ -282,12 +282,6 @@
|
||||
external OpenID server. <literal>org.springframework.security.openid</literal>.
|
||||
Requires OpenID4Java.</para>
|
||||
</section>
|
||||
<section xml:id="spring-security-crypto">
|
||||
<title>Crypto - <literal>spring-security-crypto.jar</literal></title>
|
||||
<para>Contains cryptography utility functions which are used by other
|
||||
Spring projects. <literal>org.springframework.security.crypto</literal>.
|
||||
</para>
|
||||
</section>
|
||||
</section>
|
||||
<section xml:id="get-source">
|
||||
<title>Checking out the Source</title>
|
||||
|
Loading…
x
Reference in New Issue
Block a user