bali.notary.handlers.PrivateKeyHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-bali-digital-notary Show documentation
Show all versions of java-bali-digital-notary Show documentation
This project defines the Java interfaces and classes for a digital notary.
/************************************************************************
* Copyright (c) Crater Dog Technologies(TM). All Rights Reserved. *
************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. *
* *
* This code is free software; you can redistribute it and/or modify it *
* under the terms of The MIT License (MIT), as published by the Open *
* Source Initiative. (See http://opensource.org/licenses/MIT) *
************************************************************************/
package bali.notary.handlers;
import bali.language.handlers.JavaTypeHandler;
import bali.language.nodes.NoneNode;
import java.security.PrivateKey;
/**
* This class handles the marshaling of a private key into a PEM string. Since
* the private key must be kept secret this class simply returns a default message.
*
* @author Derk Norton
*/
public final class PrivateKeyHandler implements JavaTypeHandler {
@Override
public NoneNode fromObject(T privateKey, Class>... parameterTypes) {
return NoneNode.NONE;
}
@Override
public PrivateKey toObject(N noneNode, Class> targetType, Class>... parameterTypes) {
return null;
}
}