Package org.ngengine.auth.nsec
Class NsecAuthWindow
java.lang.Object
- All Implemented Interfaces:
HasLocalTransform
,CloneableSmartAsset
,Collidable
,Savable
,JmeCloneable
,GuiControlListener
,GuiUpdateListener
,Cloneable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
Spatial.BatchHint, Spatial.CullHint, Spatial.DFSMode
-
Field Summary
Fields inherited from class org.ngengine.gui.win.NWindow
ELEMENT_ID, initStage
Fields inherited from class com.simsilica.lemur.Panel
EFFECT_CLOSE, EFFECT_OPEN, LAYER_BACKGROUND, LAYER_BORDER, LAYER_INSETS
Fields inherited from class com.jme3.scene.Spatial
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localOverrides, localTransform, name, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_CHILD_LIGHTLIST, RF_LIGHTLIST, RF_MATPARAM_OVERRIDE, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldOverrides, worldTransform
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
auth
(AuthConfig opt, org.ngengine.nostr4j.signer.NostrSigner signer, String saveWithPassword) void
authFailed
(AuthConfig opt, Throwable e) protected void
compose
(Vector3f size, AuthConfig opt) protected void
loadAndAuthStage
(AuthConfig opt, String inputKey, boolean save) Load a signer either from the store or from a given ncryptsecprotected void
renderEncryptAndStoreStage
(AuthConfig opt, org.ngengine.nostr4j.signer.NostrKeyPairSigner signer) protected void
renderStage1
(AuthConfig opt) Methods inherited from class org.ngengine.gui.win.NWindow
addWindowListener, close, focusGained, focusLost, getContent, getManager, guiUpdate, invalidate, isFullscreen, isWithTitleBar, onHide, onShow, preCompose, reloadNow, removeWindowListener, reshape, setBackAction, setCenter, setFitContent, setFullscreen, setTitle, setWithTitleBar
Methods inherited from class com.simsilica.lemur.Container
addChild, clearChildren, detachChildAt, getLayout, initializeDefaultStyles, removeChild, setLayout, toString
Methods inherited from class com.simsilica.lemur.Panel
addEffect, addMouseListener, getAlpha, getBackground, getBorder, getEffectControl, getEffects, getElementId, getInsets, getInsetsComponent, getPreferredSize, getSize, getStyle, hasEffect, removeEffect, removeMouseListener, runEffect, setAlpha, setAlpha, setBackground, setBorder, setChildAlpha, setEffects, setInsets, setInsetsComponent, setPreferredSize, setSize
Methods inherited from class com.jme3.scene.Node
attachChild, attachChildAt, breadthFirstTraversal, clone, cloneFields, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, oldDeepClone, read, setLightListRefresh, setLodLevel, setMaterial, setMatParamOverrideRefresh, setModelBound, setParent, setTransformRefresh, swapChildren, updateGeometricState, updateLogicalState, updateModelBound, updateWorldBound, write
Methods inherited from class com.jme3.scene.Spatial
addControl, addControlAt, addLight, addMatParamOverride, breadthFirstTraversal, center, checkCulling, clearMatParamOverrides, clone, depthFirstTraversal, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalMatParamOverrides, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldMatParamOverrides, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, jmeClone, localToWorld, lookAt, matches, move, move, oldClone, removeControl, removeControl, removeFromParent, removeLight, removeMatParamOverride, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setQueueBucket, setRequiresUpdates, setShadowMode, setUserData, updateMatParamOverrides, updateWorldLightList, updateWorldTransforms, worldToLocal
-
Constructor Details
-
NsecAuthWindow
public NsecAuthWindow()
-
-
Method Details
-
compose
- Specified by:
compose
in classNWindow<AuthConfig>
- Throws:
Exception
-
authFailed
-
renderStage1
-
auth
protected void auth(AuthConfig opt, org.ngengine.nostr4j.signer.NostrSigner signer, String saveWithPassword) -
loadAndAuthStage
Load a signer either from the store or from a given ncryptsec- Parameters:
inputKey
- the given ncryptsec or the pubkey to load from the storesave
-strategy
-
-
renderEncryptAndStoreStage
protected void renderEncryptAndStoreStage(AuthConfig opt, org.ngengine.nostr4j.signer.NostrKeyPairSigner signer)
-