File tree Expand file tree Collapse file tree
src/main/java/com/github/agogs/securekey Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ The "secret" to generate the key is passed as a parameter in the plugin configur
55
66Usage: Add this maven plugin as a dependency in the plugins section in your pom file.
77
8+ _ ** Note: This is not yet available on maven central, meanwhile please download the jar and install in your local maven repository.** _
9+
810```
911<plugin>
10- <groupId>com.github.pnrakesh </groupId>
12+ <groupId>com.github.agogs </groupId>
1113 <artifactId>securekey-maven-plugin</artifactId>
1214 <executions>
1315 <execution>
Original file line number Diff line number Diff line change 11<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
22 xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
33 <modelVersion >4.0.0</modelVersion >
4- <groupId >com.github.pnrakesh </groupId >
4+ <groupId >com.github.agogs </groupId >
55 <artifactId >securekey-maven-plugin</artifactId >
66 <packaging >maven-plugin</packaging >
77 <version >1.0</version >
88 <name >securekey-maven-plugin</name >
9- <url >https://github.com/pnrakesh /securekey-maven-plugin</url >
9+ <url >https://github.com/agogs /securekey-maven-plugin</url >
1010
1111 <scm >
12- <url >https://github.com/pnrakesh /securekey-maven-plugin</url >
13- <connection >scm:git:git@github.com:pnrakesh /securekey-maven-plugin.git</connection >
14- <developerConnection >scm:git:git@github.com:pnrakesh /securekey-maven-plugin.git</developerConnection >
12+ <url >https://github.com/agogs /securekey-maven-plugin</url >
13+ <connection >scm:git:git@github.com:agogs /securekey-maven-plugin.git</connection >
14+ <developerConnection >scm:git:git@github.com:agogs /securekey-maven-plugin.git</developerConnection >
1515 <tag >HEAD</tag >
1616 </scm >
1717
Original file line number Diff line number Diff line change 1- package com .github .pnrakesh .gen ;
1+ package com .github .agogs . securekey .gen ;
22
3+ import com .github .agogs .securekey .util .Util ;
34import org .apache .maven .plugin .AbstractMojo ;
45import org .apache .maven .plugin .MojoExecutionException ;
56import org .apache .maven .plugins .annotations .Mojo ;
6- import com .github .pnrakesh .util .Util ;
77
88import javax .crypto .KeyGenerator ;
99import javax .crypto .SecretKey ;
2020 * Create a {@link sun.security.ssl.SecureKey} instance and generate the Base64 encoded string
2121 * The secret to create SecureKey instance is passed as a parameter in the plugin configuration
2222 *
23- * @author pnrakesh
23+ * @author agogs
2424 *
2525 *
2626 * @goal generate
Original file line number Diff line number Diff line change 1- package com .github .pnrakesh .util ;
1+ package com .github .agogs . securekey .util ;
22
33import javax .crypto .SecretKey ;
44import java .util .Base64 ;
55
66/**
77 * Expose utility methods
88 *
9- * @author pnrakesh
9+ * @author agogs
1010 */
1111public class Util {
1212 /**
You can’t perform that action at this time.
0 commit comments