Skip to content

Instantly share code, notes, and snippets.

Simple X509 Certificate Management CRUD
Each Module will be bundled up with following frontend-backend Architecture.
Module 1: X509 Certificate version1 CRUD API
Frontend: Twitter Angular UI bootstrap + Angular JS
• Index.jsp : Basic static Home Page with bundled info about PicketLink and X509 Certificate version1.
• createX509Certificatev1.jsp - A dynamic webpage with a form embedded asking about user alias, Subject DN, number of days of validity, Key Password etc.
• Similar JSP pages for listing/viewing/updating/deleting X509Certificate.

Picketlink JSON Module JWK API

API

  • picketlink / modules / json / src / main / java / org / picketlink / json / jwk / JWK.java
  • picketlink / modules / json / src / main / java / org / picketlink / json / jwk / JWTSet.java
  • picketlink / modules / json / src / main / java / org / picketlink / json / jwk / JWKSelector.java : optional
  • picketlink / modules / json / src / main / java / org / picketlink / json / jwk / package-info.java
//Generate HAR File for browser data/traffic Navigation
package com.selenium.performancetest;
import java.io.FileOutputStream;
import org.browsermob.core.har.Har;
import org.browsermob.proxy.ProxyServer;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.WebDriver;
//Generates HAR file at specified path and automatically exports it to firefox firebug plugin
//Requires installation of firefox firebug and netExport plugins
import java.io.File;
import java.io.IOException;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
//Generate HAR File for browser data/traffic Navigation and automatically pushes it to online HARViewer
package com.selenium.performancetest;
import java.io.FileOutputStream;
import org.browsermob.core.har.Har;
import org.browsermob.proxy.ProxyServer;
import org.openqa.selenium.Proxy;
import org.openqa.selenium.WebDriver;

Picketlink Website Source (http://picketlink.org/)

This repository contains the source of the Picketlink website (hosted using github pages), to which the picketlink.org hostname resolves.

The website is built using Awestruct. The master branch contains the unprocessed website source. From that content, Awestruct generates a static website under the _site directory. The website is published to the public site by pushing the contents of the _site directory to the master branch.

Setting Up Awestruct and Rails using Ruby Version Manager(RVM)

//Declaration of @annotation_A depends on @annotation_B means that annotation_B can only be declared if annotation_A is declared.
//Also, declaration of annotation_A must precede annotation_B
@PicketlinkHttpSecurity
public interface Security {
static enum Secure {
//optional, redundant(as it is a must)
@Http
/*Existing Implementation of REST Endpoints:
UserEndpoint
//Create an user
Reads JSON representation of user from a file SCIMUser.json, parses it into
SCIMUser object(includes lot of details about scimuser) and
populates PL IDM User object with basic information(id, loginName, firstName, lastName)
with the help of SCIMUser and stores user it in identityManager. Sends back String representation
of SCIMUser as JSON.